记录一下问题:
SpringBoot 启动就报错:
java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
这个原因是:时差
直接从数据库查询就不会
(貌似64位系统的就会这样子)
在配置文件application.propties
数据库连接
spring.datasource.url=
最后添加
&serverTimezone=UTC
完美解决~