整合SpringMVC和Mybatis:Error creating bean with name 'dataSource' defined in ServletContext

org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dirverClassName' of bean class [org.springframework.jdbc.datasource.DriverManagerDataSource]: Bean property 'dirverClassName' is not writable or has an invalid setter method. Did you mean 'driverClassName'?

检查 数据库驱动包 加了 没
检查 dataSource 相关配置追问

数据库包加了:spring-jdbc-3.1.1.RELEASE,sqljdbc4.jar

追答

看你这错误 应该是 driverClassName 配置或者dataSource 配置错误 你仔细检查一下

要么把代码贴出来

追问

追答

有 sping-jdbc.jar 包吗

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网