server:
port: 9091
spring:
application:
name: zoolservice
eureka:
client:
serviceUrl:
#注册中心的地址,把网关注册到注册中心上
defaultZone: http://localhost:8760/eureka/
zuul:
routes:
#配置多个组件的路由地址
feign-consumer.path: /feign/**
#组件的应用名称
feign-consumer.serviceId: feign-consumer
feign-consumer.stripPrefix: true
ribbon-provider.path: /ribbon/**
ribbon-provider.serviceId: ribbon-provider
#当stripPrefix=true的时候 (localhost:http://localhost:8761/ribbon/hello -> localhost:http://localhost:8761/hello) 默认是true
#当stripPrefix=false的时候(http://127.0.0.1:8181/api/user/list -> http://192.168.1.100:8080/api/user/list)
ribbon-provider.stripPrefix: true
feign-consumer:
ribbon:
listOfServers: http://localhost:8763/,http://localhost:8773/
ribbon-provider:
ribbon:
listOfServers: http://localhost:8761/,http://localhost:8771/