#zuul.routes.hello.path=/hello/**
## replace hello or not
#zuul.routes.hello.stripPrefix=false
#zuul.routes.hello.url=http://127.0.0.1:9000
ribbon.eureka.enabled=false
zuul.routes.hello.path=/hello/**
zuul.routes.hello.service-id=hello
zuul.routes.hello.stripPrefix=false
hello.ribbon.listOfServers=http://127.0.0.1:9000,http://127.0.0.1:9001,http://127.0.0.1:9002
# if retry
zuul.retryable=true
# retry on current server
ribbon.MaxAutoRetries=0
# retry other server
# when three nodes, two nodes are down, seems retry don't work???
ribbon.MaxAutoRetriesNextServer=3
Springcloud Zuul Ribbon 配置 -- 不依赖Eureka实现负载均衡
最新推荐文章于 2023-03-17 19:47:43 发布