Guest User

Untitled

a guest
Jan 6th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. WARNING: Unexpected exception resolving reference
  2. 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.
  3.  
  4. jdbc:mysql://localhost/db?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
  5.  
  6. <dependency>
  7. <groupId>mysql</groupId>
  8. <artifactId>mysql-connector-java</artifactId>
  9. <version>5.1.39</version>
  10. </dependency>
  11.  
  12. <dependency>
  13. <groupId>mysql</groupId>
  14. <artifactId>mysql-connector-java</artifactId>
  15. <version>6.0.3</version>
  16. </dependency>
  17.  
  18. TimeUtil.class.getResourceAsStream(TIME_ZONE_MAPPINGS_RESOURCE);
  19.  
  20. jdbc:mysql://localhost/db?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
  21.  
  22. default_time_zone='+03:00'
  23.  
  24. sudo service mysql restart
  25.  
  26. /etc/mysql/mysql.conf.d/mysqld.cnf
  27.  
  28. "jdbc:mysql://localhost/java"
Add Comment
Please, Sign In to add comment