spring-cloud-consul-example icon indicating copy to clipboard operation
spring-cloud-consul-example copied to clipboard

spring-cloud-consul-example is an example for microservices system

Results 3 spring-cloud-consul-example issues
Sort by recently updated
recently updated
newest added

如题, ``` spring: cloud: consul: discovery: prefer-ip-address: true host: 127.0.0.1 port: 8500 ``` 当consul 为集群时,yml文件如何配置?看目前这个配置文件,只支持单点的 求教,谢谢

Could you please upgrade dependency to 2.0.4.RELEASE?

默认的instanceId是${spring.application.name}-${server.port},则向consul注册服务时的serviceId是service:${spring.application.name}-${server.port} 当 service 部署多个实例在某些容器平台时(port往往一致),会导致serviceId重复而只能注册最后一个服务。 可以通过添加以下配置避免这个问题: spring.cloud.consul.discovery.instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}