配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]

无法将你的datasource里配置的字符串转换成javax.sql.DataSource对象,导致SessionFactory无法完成,datasource配置肯定有误,检查applicationContext.xml文件中的datasource相关的配置。

 

配置错了,这写法Spring会以字符串方式注入,报类型不匹配异常,改为


你可能感兴趣的:(配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource])