Couldn't perform the operation prepareStatement: You can't perform any operations on this connection

Couldn't perform the operation prepareStatement: You can't perform any operations on this connection. It has been automatically closed by Proxool for some reason (see logs). 

链接池 报错

重新部署的时候报错

 

解决办法:


<property name="autoReconnect" value="true" />

<!-- 用于保持连接的测试语句 -->
        <test-before-use>true</test-before-use>
        <test-after-use>true</test-after-use>
        <house-keeping-test-sql>select sysdate from dual</house-keeping-test-sql>


在断开和连接之前测试是否连接

这样已经 链接着 也不会重新去链接

已经断开了也不会在去断开

你可能感兴趣的:(Couldn't perform the operation prepareStatement: You can't perform any operations on this connection)