I have below props in zuul gateway
Application.properties
zuul.routes.product.path = /api/products/**
zuul.routes.product.service-id=dotcom-ms-products
zuul.routes.product.strip-prefix=true
zuul.routes.course.path=/api/courses/**
zuul.routes.course.service-id=dotcom-ms-course-service
zuul.routes.course.strip-prefix=true
Actual MicroService - Rest Controller @GetMapping("/products/v1/getAll") getProducts()
@GetMapping("/courses/v1/getAll") getCourses()
Problem: How can i access my services : I want the end url to access my services to be like
localhost/api/products/v1/getAll
localhost/api/courses/v1/getAll
But this is not working. instead i have to call
localhost/api/products/products/v1/getAll
localhost/api/courses/courses/v1/getAll
Note I don't want to change the RequestMapping at the services.
