请问有没有人知道c3p0连接池配置文件报错,下面是具体报错内容

Invalid property 'driverClassName' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property 'driverClassName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

c3p0连接中配置jdbc没有driverClassName这个选项,是driverClass,你可以看下com.mchange.v2.c3p0.ComboPooledDataSource这个类的源码,里面是是driverClass

配置文件里面的driverClassName换成 driverClass就可以了