报错:Failed to coerce property:acquireIncrement[propVal: ; propType: int]

 在c3p0的配置文件出现了报错


【原因】

c3p0-config.xml文件中

<property name="acquireRetryDelay" value="10"/>  
  • 上述配置方式value值类型默认为String类型,因此出错(这里只列了acquireRetryDelay属性)

【网上提供解决方法】

c3p0-config.xml文件中,改为:

<property name="acquireRetryDelay">10</property>  

具体原因我也不清楚,xml是支持value赋值的,但这里改成这样写法确实不会再报错。

猜你喜欢

转载自blog.csdn.net/weixin_41888813/article/details/81233794
int