forezp / blog-comments

3 stars 0 forks source link

SpringCloud教程第7篇:高可用的分布式配置中心 - 方志朋的博客 #116

Open forezp opened 5 years ago

forezp commented 5 years ago

https://www.fangzhipeng.com/springcloud/2017/06/07/sc07-config.html

上一篇文章讲述了一个服务如何从配置中心读取文件,配置中心如何从远程git读取配置文件,当服务实例很多时,都从配置中心读取文件,这时可以考虑将配置中心做成一个微服务,将其集群化,从而达到高可用,架构图如下:

Azure (3).png

GYFgaoyuefei commented 5 years ago

二、改造config-server最后一句是需要在程序的启动类Application加上@EnableEurekaClient的注解。

github9102 commented 5 years ago

有碰到过启动 config-client报错 Could not resolve placeholder 'foo' in value "${foo}" 这个的吗

jiangzhuorong commented 5 years ago

@github9102 有碰到过启动 config-client报错 Could not resolve placeholder 'foo' in value "${foo}" 这个的吗

打包后就可以跑

zzuhai commented 5 years ago

请问下为什么服务化了以后就实现高可用了呢,服务一挂不是也不能用了,是要弄3个config-server,还是一个就行了呢

bboylilcake commented 5 years ago

@github9102 有碰到过启动 config-client报错 Could not resolve placeholder 'foo' in value "${foo}" 这个的吗

把博主所有的pom文件复制过来就行。我也不知道少了哪个jar包。全都复制过来就能用