数据库时区问题,服务器时间是对的,但是数据库落地时间不对
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user