spring2.0:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either th

JAVA学习网 2019-01-26 11:26:01

提示系统时区出现错误,可以在mysql中执行命令: 

set global time_zone='+8:00' 


或者在数据库驱动的url后加上serverTimezone=UTC参数

jdbc:mysql://localhost:3306/exam?characterEncoding=utf8&serverTimezone=UTC

  

阅读(2375) 评论(0)