When learning mybatis, I encountered an error, the error is as follows:
Cause:
Solution: [1] Install the corresponding version of the database locally. Since I have MySQL 5.6 and MySQL 8.0 installed locally, switching the database to MySQL 5.6 solves the problem. <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.18</version> </dependency> Supplement: Mybatis connection to mysql8.0 is abnormal The reference to entity "serverTimezone" must end with the ';' delimiter. Reference to entity 'serverTimeZone' must end with a ';' delimiter. <property name="jdbcUrl"> jdbc:mysql://localhost:3306/exam?characterEncoding=utf8&serverTimezone=UTC </property> This is the end of this article about the configuration issues of MyBatis connecting to MySql8.0 version. For more relevant MyBatis connecting to MySql8.0 content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Learn the common methods and techniques in JS arrays and become a master
1. Use floating method Effect picture: The code i...
Basic Introduction Features Flexbox is a CSS disp...
Counting the size of each table in each database ...
When releasing a project, you will often encounte...
CSS 3 animation example - dynamic effect of Tab b...
Recently, an error occurred while starting MySQL....
Don't be surprised if you see some kind of und...
<br />Original text: http://andymao.com/andy...
The test environment of this experiment: Windows ...
The property of centering text in CSS is very simp...
I recently took over a small program project, and...
If your DOCTYPE is as follows: Copy code The code ...
MySQL's index types include normal index, uni...
The following command is often used: chmod 777 文件...
Introduction to Vue The current era of big front-...