springboot 鏈接池wait_timeout超時設置

使用springboot 線程池鏈接MySQL時,mysql數據庫wait_timeout 爲8個小時,因此程序次日發現報錯,在url配置了 autoReconnect=true 也不行,查詢配置如下 java #驗證鏈接的有效性node spring.datasource.test-while-idle=truemysql #獲取鏈接時候驗證,會影響性能 spring.datasource.te
相關文章
相關標籤/搜索