When you connect to the database in idea, you will be prompted to download the dependencies. If the dependencies are not downloaded successfully, an error will be reported :
Failed to download’https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.25/mysql-connector-java-8.0.25.jar’:
Remote host terminated the handshake
Method : Check whether your configuration image has been matched incorrectly
- Check the Maven file in your computer, open apache-maven-3.6.3, open the conf file and select settings, select the opening method to enter
- I made a mistake in the configuration of the Alibaba Cloud mirror, and I missed a mirror
- After reconfiguring the image and restarting the idea, just download the dependencies again.