【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
方言是有配置的:
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="hibernateProperties"> <props> <prop key="hiberante.dialect">org.hibernate.dialect.MySQLDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.hbm2ddl.auto">update</prop> <prop key="hibernate.cache.use_second_level_cache">false</prop> <prop key="hibernate.cache.use_query_cache">false</prop> <prop key="hibernate.jdbc.fetch_size">50</prop> <prop key="hibernate.jdbc.batch_size">50</prop> <prop key="hibernate.connection.autocommit">true</prop> <prop key="hibernate.connection.release_mode">auto</prop> <prop key="javax.persistence.validation.mode">none</prop> <prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate4.SpringSessionContext</prop> </props> </property> <property name="packagesToScan"> <!-- 多个包用逗号分割 --> <value>com.zz.wechat.persistence</value> </property> </bean>
说是sessionFactory的获取方式发生变化了,具体该怎么做呢?官方文档里也是狗屁的都没有说明
亲, www.baidu.com
http://demo.netfoucs.com/sinat_19425927/article/details/39855045 这里有一篇不知道是否适用
不知道你英文如何, 这里也有
http://www.tuicool.com/articles/7FZrYzE
请先运用板砖工具...