HSEARCH000103: Unable to initialize IndexManager named 'XXX'

ifnotme 发布于 2016/11/04 11:13
阅读 545
收藏 0

启动报错

数据库连接正确

<!-- sessionFactory设置  一个支持annotation的sessionFactory -->
    <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
        <!-- 配置Hibernate属性 -->
        <property name="dataSource" ref="dataSource"/>
        <property name="hibernateProperties">
            <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</prop>
                <!-- 配置管理session 的方式 -->
                <prop key="hibernate.current_session_context_class">thread</prop>
                             <prop key="hibernate.hbm2ddl.auto">validate</prop>
                               <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop>
                               <prop key="hibernate.search.default.indexBase">search/index</prop>
            </props>
        </property>
        <!-- 加载所有的bean通过包搜索功能 -->
        <property name="packagesToScan" value="XXX.model"/>
    </bean>

加载中
返回顶部
顶部