Relative Content

Tag Archive for javaspringmicroservicesspring-cloud-gatewayspring-cloud-netflix

how to write host predicate correctly in spring cloud gateway

I have spring cloud gateway + spring cloud eureka discovery server + 2 services
I want all requests from one of my services to be redirected to the second service, but in the discovery service I have several replicas of the first service, and in the host predicate (auth_login_route) I want to write not the exact address of my service, but its name, so that gateway takes the exact address from the discovery service