1. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The cause of the error and the method of modification:
It is because the back-end MySQL version is 8.0 and higher, which is driven before MySQL8.0 com.mysql.jdbc.Driver, and can be changed after 8.0 com.mysql.cj.jdbc.Driver;
If the error of Communications link failure is still reported, you can modify jdbc tojdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone = GMT
2. IntelliJ IDEA import jar package
First download the jar package (mybatis), click Project Structure 2. Find Dependencies, click "+" 3. Select JARS or directories 4. Find the Jar package path, and select the application. as the picture shows: