为了账号安全,请及时绑定邮箱和手机立即绑定

测试的时候报错

警告: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found

正在回答

2 回答

+1...求救

0 回复 有任何疑惑可以回复我~

你应该是写错了,应该是<property name="dataSource" ref="dataSource"/>,你检查检查是不是写成了<property name="dataSource" value="dataSource"/>

0 回复 有任何疑惑可以回复我~
#1

qq_L_568

我也报这个错.<property name="dataSource" ref="dataSource"/>没写错啊
2018-06-24 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

测试的时候报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信