[SpringBoot] Maven Error: Connection refused to host: 127.0.0.1

This error occurred during package guide today:

java.util.concurrent.ExecutionException: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection timed out: connect

After checking, the reason is that the JDK version used in the project is different from that imported by Maven. Put Maven – & gt; Just change the JDK importer version in importing to the project version.

For example, I use 1.8, so I change it to:

It’s done~

Read More: