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

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

set global time_zone='+8:00' 


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

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

  

posted @ 2019-01-25 15:44  永不飞xiang  阅读(1329)  评论(0编辑  收藏  举报