原因數據庫連接url寫錯
加上 allowPublicKeyRetrieval=true
應為: jdbc.url=jdbc:mysql://localhost:3306/fes?allowPublicKeyRetrieval=true&useSSL=false
參考:https://dizzycoding.com/java-sql-sqlnontransientconnectionexception-public-key-retrieval-is-not-allowed-code-answers/