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
Definition and Usage The <input> tag is use...
Mysql slow query explanation The MySQL slow query...
Preface The previous article introduced the insta...
1. Go to the official website to download the jdk...
This article mainly introduces the breadcrumb fun...
Preface For the permissions of files or directori...
Openlayers is a modular, high-performance and fea...
Being a web designer is not easy. Not only do you...
Table of contents js calling method Android 1.js ...
Mirroring is also one of the core components of D...
Preface Hello everyone, this is the CSS wizard - ...
Problem Description After installing the plugin E...
In actual projects, the database needs to be back...
Preparation 1. Check whether the GPU supports CUD...
When vue2 converts timestamps, it generally uses ...