JAVA-11367 Update article - Setting the MySQL JDBC Timezone

This commit is contained in:
anuragkumawat
2022-05-09 20:56:15 +05:30
parent 3c1a0c17b6
commit b1edbfe826
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
</dependencies> </dependencies>
<properties> <properties>
<mysql-connector-java.version>8.0.12</mysql-connector-java.version> <mysql-connector-java.version>8.0.23</mysql-connector-java.version>
</properties> </properties>
</project> </project>

View File

@@ -1,6 +1,6 @@
spring: spring:
datasource: datasource:
url: jdbc:mysql://localhost:3306/test?useLegacyDatetimeCode=false url: jdbc:mysql://localhost:3306/test?
username: root username: root
password: password:
@@ -9,6 +9,6 @@ spring:
ddl-auto: update ddl-auto: update
properties: properties:
hibernate: hibernate:
dialect: org.hibernate.dialect.MySQL5Dialect dialect: org.hibernate.dialect.MySQL8Dialect
jdbc: jdbc:
time_zone: UTC time_zone: UTC