Let's have a look at what happens behind the scenes:
- The product section in the route definition tells Zuul that the paths configured after /product*/** are to be redirected to the product service, if it is present in the Eureka registry configured in the Zuul server.
- The path is configured to be /product*/**. Why three * ? If you remember, our product service can handle two types of REST services: /product/1 GET and /product PUT, DELETE, POST requests. The /products?id=1 GET requests that it return a list of products for the given category ID. Hence, the product* maps to both /product and /products in the URL.
- The false setting of stripPrefix lets the /product/ pass on to the product service. If the flag is ...