ext { set('springCloudVersion', 'Greenwich.SR1') }
dependencies { implementation 'org.springframework.cloud:spring-cloud-starter-netflix-zuul' }
dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } }
zuul.routes.employee.path=/employee/** zuul.routes.employee.url=http://localhost:8081/employee
In actual Employee web service, on top of the controller add below to accept any host to access the operation.
In Main application of Actual web service Employee in controller on top add,
@CrossOrigin(origins = "*", maxAge = 3600) @RestController @RequestMapping("/employee") public class EmployeeController { }