在连接mysql的JDBC的url后面加上服务器的时区:serverTimezone=UTC
jdbc:mysql://localhost:3306/geek?useUnicode=true&characterEncoding=UTF8&serverTimezone=UTC&useSSL=false
mysql连接出现java.sql.sql exception:服务器时区值'''_''''无法识别或表示多个时区
猜你喜欢
转载自www.cnblogs.com/yelanggu/p/12367708.html
今日推荐
周排行