![](/img/trans.png)
[英]Spring cloud : Can not get Feign client to work with consul
[英]How to configure Feign client to work without Consul
有人可以帮忙找出为什么我不能使用application.properties
不运行领事的情况下在本地设置FeignClient
吗?
客户:
@FeignClient(value = "my-service", configuration = FeignConfig.class) {
...
}
application.properties:
spring.cloud.consul.config.enabled=false
my-service.ribbon.listOfServers=127.0.0.1:8091
管理配置@FeignClient
也与使用这些CONFIGS硬编码地址工作aplication.properties
:
<service-name>.ribbon.listOfServers=<ip:port>
spring.cloud.bus.enabled=false
spring.cloud.consul.discovery.enabled=false
spring.cloud.consul.enabled=false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.