spring 与jpa整合抛Not supported by BasicDataSource 异常,
要把spring 里面hibernate里配置数据源的部分注释掉
<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean" >
<property name="dataSource" ref="dataSource"/>
<!-- 配置文件方式 -->
<!-- <property name="mappingLocations">
<list>
<value>classpath:liang/domain/User.hbm.xml</value>
</list>
</property> -->
<!-- 扫描包注解hibernate方式 -->
<property name="packagesToScan">
<list>
<value>liang.domain</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<!-- 注释了这段就不抛 Not supported by BasicDataSource 异常-->
<!-- <prop key="show_sql">${jdbc.show_sql}</prop>
<prop key="jdbc.use_scrollable_resultset">false</prop>
<prop key="hibernate.jdbc.batch_size">50</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.connection.url"><![CDATA[jdbc:mysql://127.0.0.1:3306/springmvc?useUnicode=true&characterEncoding=UTF-8]]></prop>
<prop key="hibernate.connection.driver_class">com.mysql.jdbc.Driver</prop>
<prop key="hibernate.connection.username">root</prop>
<prop key="hibernate.connection.password">123456</prop>
<prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop> -->
<!-- <prop key="hibernate.current_session_context_class">org.springframework.orm.hibernate4.SpringSessionContext</prop> -->
</props>
</property>
</bean>
分享到:
相关推荐
解决SVN上传提示Empty directoriesis not supported 解决SVN上传提示Empty directoriesis not supported
java解决405 - HTTP method GET is not supported by this URL
网上各种教程无法解决这个工具提示 not supported not listening问题,这个安装包给出了所有需要的文件,并给出了详细的指引。 绝大多数情况你会安装成功。如果你成功了,或者失败了,请给我评论。大家看评论区。
网上各种教程无法解决这个工具提示 not supported not listening问题,这个安装包给出了所有需要的文件,并给出了详细的指引。 绝大多数情况你会安装成功。如果你成功了,或者失败了,请给我评论。大家看评论区。 ...
在启动Oracle数据库时提示:ORA-00845 MEMORY_TARGET not supported on this system错误,解决办法
部分程序在centos下安装时提示:Graphical installers are not supported by the VM
NULL 博文链接:https://lectery.iteye.com/blog/485357
TBS是腾讯的浏览服务,依托x5内核,对于普通第三方开发者完全免费,使用也没有限制。
Office安装错误Per-user install not supported.txt
C#连接MYSQL8.0的版本老是提示[Authentication method 'caching_sha2_password' not supported by any of the available plugins.] 这个错误,换低版本的MYSQL连接又没有问题,现在把我的经验分享一下,解决这个连接...
使用TBS实现doc、pdf等46种格式的文件的在线阅读的源码,为Android studio源码
IDEA中的.VUE文件报错 Export declarations are not supported by current JavaScript version 和Export declarations are not supported by current JavaScript version报错都是一个解决办法 js文件报错 第一步,...
这原本可以通过rdpWrap实现支持,但rdpWrap没持续更新,win10更新后就会产生listener state not supported 问题。当前上传版本解决了此问题,在64位win10.0.19042.1052上测试正常。 解压后双击 安装.bat 进行安装 ...
django 设置settings.py,本文以mysql 为例,说明怎样配置mysql d的连接
ThinkPHP6.1 Filesystem Driver aliyun not supported
ERROR:ABIs [armeabi] are not supported for platform.Supported ABIs are [arm64-v8a, armeabi-v7的完美解决方案-附件资源
深入浅出设计模式,以轻松的语言向你描绘出编程过程中遇到令你头痛的问题。会让你豁然开朗的感觉。
测试可用 用于ver.10.0.19041.2913“not supported” 执行rdpwrap_ini_updater.bat