SpringCloud Eureka配置問題
1、後臺一直列印:
2018-11-28 21:50:49.889 INFO 9108 --- [on(4)-127.0.0.1] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
2018-11-28 21:50:49.904 INFO 9108 --- [on(2)-127.0.0.1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 15 ms
2018-11-28 21:50:50.929 INFO 9108 --- [on(4)-127.0.0.1] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url -
2018-11-28 21:50:50.929 WARN 9108 --- [on(4)-127.0.0.1] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/microcloud-eureka-7001/default": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
注意這句:“Fetching config from server at : http://localhost:8888”;config特麼是springcloud config報的錯,還沒配置config呢,只是因為新增maven依賴時加了springclould 的依賴。