You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two things. server-webmvc already supports lb:// uris. Discovery locater enabled is not needed for that (that feature creates routes from discovery). See #3332 for discovery locator for server-webmvc. GlobalFilter is not needed either, use a servlet filter.
@spencergibb i used below properties it's not working
spring.cloud.gateway.mvc.routes.id=configRoute1
spring.cloud.gateway.mvc.routes.configRoute1.uri=http://localhost:9803
spring.cloud.gateway.mvc.routes.configRoute1.predicates.Path=/hello
and used this but it's not working. can you please help me solve this with properties
I tried with the handler function it's not working. I need the same behavior as the global filter
public class AuthFilter implements GlobalFilter, Ordered
alternate for this for spring cloud gateway mvc
spring.cloud.gateway.routes[0].id=first
spring.cloud.gateway.routes[0].uri=lb://first-service
spring.cloud.gateway.routes[0].predicates=Path=/first/**
spring.cloud.gateway.discovery.locator.enabled=true
spring.cloud.gateway.discovery.locator.lowerCaseServiceId=true
alternate properties for spring cloud gateway mvc
Thank you for the project and in advance for any help.
The text was updated successfully, but these errors were encountered: