今天在配置数据源,测试数据连接时报这个错:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'houseKeepingSleepTime' of bean class [org.logicalcobwebs.proxool.ProxoolDataSource]: Bean property 'houseKeepingSleepTime' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
弄了一天,在网上找了很多办法都没能改掉,最后发现将applicationContext.xml里的houseKeepingSleepTime注释掉就好了,修改如下: