I have controller mappings to /user
and /order
:
@RestController
@RequestMapping("/users")
public class UserController {
...
}
@RestController
@RequestMapping("/orders")
public class OrderController {
...
}
I want to access these by URL at http://localhost:8080/api/users
and http://localhost:8080/api/orders
, respectively.
How do I achieve this in Spring Boot?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…