Proxool houseKeepingSleepTime bug修正
程序员文章站
2022-03-03 12:32:18
...
修正后jar包在附件内
异常代码:
Caused by: 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?
译:在类org.logicalcobwebs.proxool.ProxoolDataSource],中houseKeepingSleepTime属性无效,houseKeepingSleepTime属性不可写或houseKeepingSleepTime有一个无效的settter方法,houseKeepingSleepTime的setter方法的参数类型匹配getter方法的返回值类型吗
官方源码:
/**
* @see ConnectionPoolDefinitionIF#getHouseKeepingSleepTime
*/
public long getHouseKeepingSleepTime() {
return houseKeepingSleepTime;
}
/**
* @see ConnectionPoolDefinitionIF#getHouseKeepingSleepTime
*/
public void setHouseKeepingSleepTime(int houseKeepingSleepTime) {
this.houseKeepingSleepTime = houseKeepingSleepTime;
}
修正代码:
/**
* @see ConnectionPoolDefinitionIF#getHouseKeepingSleepTime
*/
public long getHouseKeepingSleepTime() {
return houseKeepingSleepTime;
}
/**
* @see ConnectionPoolDefinitionIF#getHouseKeepingSleepTime
*此处将int类型改为long类型
*/
public void setHouseKeepingSleepTime(long houseKeepingSleepTime) {
this.houseKeepingSleepTime = houseKeepingSleepTime;
}
修正后jar包在附件内
推荐阅读
-
APMServ 5.2.6 Nginx无法启动BUG修正方法
-
[下载]NVIDIA发布376.80 Vulkan驱动:修正Bug
-
修正IE下使用CSS属性overflow的bug
-
APMServ 5.2.6 Nginx无法启动BUG修正方法
-
Tomcat修正JDK原生线程池bug的实现原理
-
修正Percona Monitoring Plugins for Zabbix的一处脚本Bug
-
[下载]NVIDIA发布376.80 Vulkan驱动:修正Bug
-
No2:luacom中文内容输出BUG及修正
-
(用微信扫的静态链接二维码)微信native支付模式官方提供的demo文件中的几个bug修正,nativedemo
-
MySQL最新版本5.1.34发布 修正部分BUG