找不到这sqlSessionFactory个bean~~~?

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

jetbbb
浏览 3371回答 2
2回答

yanrun

看异常问题应该是dataSource类型错误,应该是javax.sql.DataSource,而你的是String型,无法进行类型转换。

Aliol

看不懂
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java