简体   繁体   中英

Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect

运行 Spring 应用程序后的结果

I'm very new in spring boot and trying to build a microservices project using spring boot by referring to tutorial but i'm getting this error. While try to retrieve localhost:8888 i got this "localhost refused to connect". I already try to change server port but still get the same outcome. Please help me.Why did i get this connection refuse? FYI: i try to connect my spring cloud config server to git.

i too has the same issue i had two spring boot application - LS and SCCS the port used for LS is 8080 the port used for SCCS is 8888

i tried to pass all the configuration of LS to SCCS and tried to run the LS ....I got the connection timeout error... instead... u run the SCCS first.. which is configured in 8888... it works fine

hope this answers your question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM