server: port: 80 spring: application: name: gateway eureka: instance: prefer-ip-address: true #以IP注册进eureka,不以ID注册 client: register-with-eureka: true #注册到eureka为true fetch-registry: true service-url: defaultZone: http://localhost:8761/eureka/
在服务网关配置时, 我看到了服务网关的配置文件并没有怎么配置, 但是为什么可以通过 http://localhost/book/takeBook 来访问 book服务呢?