为了账号安全,请及时绑定邮箱和手机立即绑定

请问Spring里配C3P0报错是为什么。没看懂,可以解答下吗

请问Spring里配C3P0报错是为什么。没看懂,可以解答下吗

慕粉1473922411 2019-01-27 16:12:54
Caused by: org.springframework.beans.NotWritablePropertyException:             Invalid property ' driverClass' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' driverClass' is not writable or has an invalid setter method. Did you mean 'driverClass'?            at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1060)            at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:918)            at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:82)            at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:62)            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1489)            ... 13 moreSpring配置文件如下:DAO文件如下:说的什么 Invalid property ' driverClass' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' driverClass' is not writable or has an invalid setter method. Did you mean 'driverClass'?我不都已经serJdbcTemplate了吗
查看完整描述

1 回答

?
慕粉1473922411

TA贡献9条经验 获得超0个赞

我现在不报错了,但是。。数据库没关联好像。我打印要更新的User。可以打印出我要的,但是数据库 库不更新。。

https://img1.sycdn.imooc.com//5c4ec5750001c34111560699.jpg

查看完整回答
反对 回复 2019-01-28
  • 1 回答
  • 0 关注
  • 1546 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信