zuul routes tutorial application.properties code example
Example 1: spring boot routing examples
@RestController
public class OrderController {
@RequestMapping(value = "/customers/{cid}/orders/{oid}", method = GET)
public Order getOrder(@PathVariable int cid, @PathVariable int oid) {
...
}
}
Example 2: zuul routing tutorial
server:
port: 8111
spring:
application:
name: zuulserver
zuul:
routes:
products:
path: /api/demo/**
url: http://localhost:8080/