Spring Boot - Request and Response Handling
Given the controller method:
What will be the output when a client requests
@GetMapping("/items/{itemId}")
public String getItem(@PathVariable String itemId, @RequestParam(defaultValue = "asc") String order) {
return itemId + "-" + order;
}What will be the output when a client requests
/items/42?order=desc?