

Error creating bean with name 'dataSource' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'driver' of bean class [org.apache.commons.dbcp.BasicDataSource]: Bean property 'driver' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
ssm整和问题,求大神解答
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
16条回答
熊猿 2018-01-09 10:09关注你看下“driver”这个属性名称是不是搞错了,ctrl+左键点进去看看源码,并不是所有数据源的驱动类字段都是“driver”,也有的叫“driverClassName”
解决 无用评论 打赏 举报