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

wuxiang12580 2019-01-25 15:44 原文

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

set global time_zone='+8:00' 


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

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

  

推荐阅读