configure routing spring boot code example
Example: 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) {
...
}
}