需要设置区时
spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Shanghai
jdbc:mysql://localhost/database?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2b8
需要设置区时
spring.jpa.properties.hibernate.jdbc.time_zone=Asia/Shanghai
jdbc:mysql://localhost/database?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2b8