Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WARNING: Unexpected exception resolving reference
- java.sql.SQLException: The server timezone value 'UTC' is unrecognized or represents more than one timezone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc timezone value if you want to utilize timezone support.
- jdbc:mysql://localhost/db?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.39</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>6.0.3</version>
- </dependency>
- TimeUtil.class.getResourceAsStream(TIME_ZONE_MAPPINGS_RESOURCE);
- jdbc:mysql://localhost/db?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
- default_time_zone='+03:00'
- sudo service mysql restart
- /etc/mysql/mysql.conf.d/mysqld.cnf
- "jdbc:mysql://localhost/java"
Add Comment
Please, Sign In to add comment