如下,每个微服务节点都需要配置服务中心地址,如果哪天注册中心地址改了,岂不是要修改所有微服务的配置文件?我尝试使用springcloud的config-server来统一配置,但好像做不到?有没有可参照的示例eureka:instance:prefer-ip-address:trueclient:serviceUrl:defaultZone:http://localhost:7001/eureka/
eureka:instance:prefer-ip-address:trueclient:serviceUrl:defaultZone:http://localhost:7001/eureka/
instance:prefer-ip-address:trueclient:serviceUrl:defaultZone:http://localhost:7001/eureka/
prefer-ip-address:trueclient:serviceUrl:defaultZone:http://localhost:7001/eureka/
client:serviceUrl:defaultZone:http://localhost:7001/eureka/
serviceUrl:defaultZone:http://localhost:7001/eureka/
defaultZone:http://localhost:7001/eureka/
相关分类