From af746689aae7363084e8e8fb2eb13672080d048c Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Mon, 31 Dec 2018 17:15:27 +0800 Subject: [PATCH] corrected timezone in mySQL JDBC configure --- src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9c4e04a..4aafd26 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -4,6 +4,6 @@ spring.cache.type=redis spring.redis.host=localhost spring.redis.port=6379 -spring.datasource.url=jdbc:mysql://localhost:3306/irext +spring.datasource.url=jdbc:mysql://localhost:3306/irext?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=root \ No newline at end of file