如我所见,您设置了Eureka,但使用不正确。首先在zuul yaml中
eureka: client: registerWithEureka: true
您不需要在eureka上注册zuul应用程序,因为您是直接访问zuul网关,因此没有任何服务会尝试找到并访问您的网关。
然后
account: serviceId: ACCOUNT url: http://192.168.0.62:8081/ stripPrefix: false predicate: - Path=/accounts/**
如果您有服务发现,则不需要
url属性和
predicate: - Path,请尝试:
account: serviceId: <YOUR_ACCOUNT_SERVICE_ID> stripPrefix: false path: /account/**
默认情况下,serviceId为:
spring: application: name: <YOUR_ACCOUNT_SERVICE_ID>



