1. 程式人生 > >關於的解決Connections could not be acquired from the underlying database!的異常報錯

關於的解決Connections could not be acquired from the underlying database!的異常報錯

關於的解決Connections could not be acquired from the underlying database!的異常報錯
當然網上有各種解決辦法,一下是我複製貼上的

  1. 連線資料庫引數配置是否正確

檢視連線的url 使用者名稱 密碼是否正確 ,密碼是否過期

  1. 檢視資料庫server是否處於執行狀態

    如server沒有啟動 重啟server

  2. 檢查到資料server的網路連線是否正常

  3. 連線到資料庫server的連線數是否已經達到最大連線數

    1. 如已經達到最大連線數,檢查程式是否使用連線後沒有釋放

    2. 上調資料庫最大連線數設定

當然這些都沒有解決我的問題
最後發現是jar包版本太低的原因導致的,索性將jar包直接引入為8版本的,完美解決問題