SpringBoot警告-springboot2.0 hikaricp - failed to valid... no operations allowed after connection closed.


SpringBoot警告-springboot2.0 hikaricp - failed to valid... no operations allowed after connection closed.

——墨問蒼生


 

1 2020-01-13 14:26:58.733  WARN 15263 --- [http-nio-8830-exec-10] com.zaxxer.hikari.pool.PoolBase          : MyHikariCP - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@49fe3d0e (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
2 2020-01-13 14:26:58.735  WARN 15263 --- [http-nio-8830-exec-10] com.zaxxer.hikari.pool.PoolBase          : MyHikariCP - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@516aa6c4 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.

首先在mysql中執行

1 SHOW VARIABLES LIKE "%timeout%";

 

后查閱資料發現不是這個問題

修改/etc/my.cnf文件,添加或修改如下代碼

 

 問題解決

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM