问答详情
源自:4-1 转账环境的搭建

Bean property 'driverClass' is not writable or has an invalid setter method

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'driverClass' of bean class [com.mchange.v2.c3p0.JndiRefForwardingDataSource]: Bean property 'driverClass' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

提问者:gcgc 2016-11-12 11:13

个回答

  • 慕粉4143918
    2016-11-12 14:32:19
    已采纳

    检查一下你的连接池,是ComboPooledDataSource不是JndiRefForwardingDataSource

    在检查一下driverClass的拼写是否正确