初始化bean失败;嵌套异常,[java.lang.String] to required type [javax.sql.DataSource]

[java.lang.String] to required type [javax.sql.DataSource]

Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property ‘dataSource’

检查applicationContext.xml文件中的datasource相关的配置

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