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

来源:4-1 转账环境的搭建

gcgc

2016-11-12 11:13

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?

写回答 关注

1回答

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

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

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

    gcgc

    非常感谢!

    2016-11-13 02:28:34

    共 1 条回复 >

Spring事务管理

事务管理是Spring重要的知识,应用事务解决数据不一致问题

87318 学习 · 197 问题

查看课程

相似问题