idea数据库连接失败,提示java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeException,大概率是数据库版本的时区需要同步,在数据库后面加上时区即可。
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC