出錯場景:
打開idea鏈接數據庫輸入數據庫賬號密碼以及數據庫點擊【Test Connection】提示java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeExcept
解決方法:
jdbc:mysql://localhost:3306/你要連接的數據庫?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC