Let's now try to run our product service, along with the rest of the ecosystem:
- Start the services in the reverse order of dependency.
- Start the config server and the Eureka server by running the main class of the projects or through Maven.
- Start the product service.
- Start the Zuul service.
Watch the log windows and wait till all servers start.
- Now, run the following requests in your browser:
- http://localhost:8080/product/3
- http://localhost:8080/products?id=1
You should see product 3 listed in the first request and the products corresponding to category 1 in the second request.
Let's have a look at the logs of Zuul and product service:
- In Zuul, you can see that the mapping of the /product*/** was resolved and ...