解決Could not get a resource from the pool 異常問題

在項目中實現數據庫查詢內容,用到redis的時候出現 Could not get a resource from the pool ,試了挺多方法都不行,包括改最大、最小連接數maxIdle、maxIdle都無法解決。 從頭到尾仔細摸索仔細排查,終於給發現問題了。就是沒有把服務打開:redis-server.exe 打開了之後就能正常使用redis了。
相關文章
相關標籤/搜索