[Solved] IDEA Error: Connection refused to host: 127.0.0.1;

Solution:

Check whether the JDK when you import Maven is local, as shown in the figure below. After you change it

Read More: