weixin_37306052 2018-01-09 09:56 采纳率: 0%
浏览 1197
已结题

ssm整和问题,求大神解答

图片说明
图片说明
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?

  • 写回答

16条回答

  • 熊猿 2018-01-09 10:09
    关注

    你看下“driver”这个属性名称是不是搞错了,ctrl+左键点进去看看源码,并不是所有数据源的驱动类字段都是“driver”,也有的叫“driverClassName”

    评论

报告相同问题?