eueaka,config是通过docker生成的容器,config client访问报错

来源:12-4 构建eureka高可用服务

幕布斯8184715

2018-05-17

http://img.mukewang.com/szimg/5afd68070001449b07030375.jpg

http://img.mukewang.com/szimg/5afd680700016a0b16630419.jpg

 Fetching config from server at: http://69c857f63652:8080/

Could not locate PropertySource: I/O error on GET request for "http://69c857f63652:8080/employe/dev": 69c857f63652; nested exception is java.net.UnknownHostException: 69c857f63652


写回答

1回答

廖师兄

2018-05-18

这是注册到eureka,上报的ip问题。你项目先在本地跑,往后看,rancher部署那节会说到解决方法

0
2
廖师兄助理
回复
幕布斯2514757
rancher只是起到水平横向扩展服务器的作用,至于config的配置获取不到,同学应该先让其他容器获取到配置信息然后再向下进行操作
2020-04-16
共2条回复

SpringCloud Finchley(M2+RELEASE+SR2)微服务实战

SpringCloud组件实现微服务,【已升级Finchley.Release】

5672 学习 · 2489 问题

查看课程