https://repo.maven.apache.org/maven2 problem occurs when using Maven in idea

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

  1. 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
    insert image description here
  2. I made a mistake in the configuration of the Alibaba Cloud mirror, and I missed a mirror
    insert image description here
  3. After reconfiguring the image and restarting the idea, just download the dependencies again.

Guess you like

Origin blog.csdn.net/ex_6450/article/details/127647336