異常:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c7ec6d7 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
翻閱了很多資料,幾乎都沒有解決。
最終發現是數據庫的問題,這個異常系統會拋出(console中),但不會在error log中提示,所以新手還蠻難發現的…
找到jdbc.properties這個文件
我的錯誤是數據庫密碼錯了,配置寫的是root123,而我自己設置的是root,把它改回來,然後重新運行項目,就能出現首頁內容,而不是空白頁面了…
其他錯誤參考:技術筆記:java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password)