springboot mysql8.x时区设置
1、mysql的连接地址设置设置为亚洲上海
url: jdbc:mysql://localhost:3306/firedb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
2、spring的jackson格式设置
spring
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8