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 - http://localhost:8888. Will be trying the next url if available
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 的依賴。

2、eureka客戶端無法連接上服務端(springcloud Finchley版本)

需要關閉在請求“/eureka/**” 上的CSRF token。
SpringCloud Eureka配置問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章