spring boot - Routing request to same service registered as two different service-ID -
in spring boot application, m using eureka server discovery service. in 1 of discovery client application using zuul proxy route requests different services registered discovery server.
i have 1 resource application responsible storing data db. have created 2 instances service registered 2 different service discovery service. api published service lets /resources get,post, etc
the client application sends request /definitions , /locations 2 instances of resource service.
now problem want map /definitions service-id 1/resources , locations /service-id2/resources.
i m not sure how when send /defnitions client application expects /definitions there in resource application not case.
i trying zuul: routes: locations: path: /locations/** rewrite: /resources/** serviceid: location_service stripprefix: false definitions: path: /definitions/** rewrite: /resources/** serviceid: definition_service stripprefix: false
you using stripprefix: false
in both cases. means zuul not cut request url , pass proxied service. try play that.
at least in spring-cloud org.springframework.cloud.netflix.zuul.filters.zuulproperties file there no 'rewrite' property, sure correct?
Comments
Post a Comment