数据库时区问题,服务器时间是对的,但是数据库落地时间不对

This commit is contained in:
limqhz
2022-05-16 00:44:14 +08:00
parent 7163f6cd7e
commit 58a77f9902

View File

@@ -6,7 +6,7 @@ spring.thymeleaf.cache=true
swagger.enable=false swagger.enable=false
spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/smallapp_point?useUnicode=true&characterEncoding=utf8&useSSL=false spring.datasource.url=jdbc:mysql://127.0.0.1:3306/smallapp_point?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2b8&useAffectedRows=true&useSSL=false
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=hyty1234 spring.datasource.password=hyty1234