小甜、
Published on 2017-09-02 11:31 in 暂未分类 with 小甜、

'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'

'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource'

在配置spring环境时出现如上错误,即类型不匹配不能够完成字符串类型到dataSource对象的转换

错误原因

spring的applicationContext.xml文件中,在配置sqlSessionFactory和在配置事务的时候

> 将ref注入错写为value注入
posted @ 2020-02-14 21:38  小甜、  阅读(387)  评论(0编辑  收藏  举报