Zuul Reverse Proxy Language Understanding
I play with Zuul, but there seems to be something fundamental I don't understand.
In the documentation ( http://cloud.spring.io/spring-cloud-netflix/spring-cloud-netflix.html ) The following Zuul config is to redirect all HTTP calls to "/ myusers" to "users".
zuul:
routes:
users: /myusers/**
I have a similar scenario but it just doesn't work. My config:
zuul:
route:
stores: /california/**
The service id is "store" and has a URL called "/ hello". When I hit:
http://localhost:8765/california/hello,
I get a Spring Boot 404 error. However, everything works very well if I replace california with stores, which results in the following configuration:
zuul:
route:
stores: /stores/**
In this case, if I call
http://localhost:8765/stores/hello,
Everything works perfectly. So it looks like the URL prefix should match the service id. Is this the expected behavior? What am I missing?
I am using Zuul 1.0.0.BUILD-SNAPSHOT. In aisde's note, I noticed that the discovery client is now built into Zuul. Is there a way to disable it if I don't want to run Eureka?
source to share