Some errors frequently reported by MySQL 8.0 high version

When importing a maven project, because using the mysql8.0 high version will be incompatible, some errors are recorded, so as not to forget how to change it after a long time.
0
driver jar package to download 8.0.19 of
1 dataSource.setDriverClassName ( "com.mysql.cj.jdbc.Driver");
remember plus CJ
2 dataSource.setUrl ( "JDBC: MySQL: //127.0.0.1: 3306 / test? serverTimezone = UTC ”);
Remember to add serverTimezone = UTC
3 in the pom.xml after the url and change to your own mysql version number

Published 9 original articles · praised 3 · visits 3129

Guess you like

Origin blog.csdn.net/qq_43469464/article/details/105301119