错误信息
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. -> [Help 1]
数据库application.yml配置修改:
主要修改 jdbc-url属性
加上 ?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
datasource:
type: com.alibaba.druid.pool.DruidDataSource
# 注意:java 9或者mysql 8 以上需要将com.mysql.jdbc.Driver 改为 com.mysql.cj.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver
#基本属性
jdbc-url: jdbc:mysql://127.0.0.1:3306/test?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
username: ***
password: ***