Chapter 3, Control Your Store with Controllers
Questions |
Answers |
If you imagine a web application called Library with the following request mapping on a Controller class level and in the method level, which is the appropriate request URL to map the request to the @RequestMapping("/books") public class BookController { ... @RequestMapping(value = "/list") public String books(Model model) { ...
|
1. |
Similarly, suppose we have another handler method called @RequestMapping public String details(Model model) { ...
|
2. |
If we have a web application called |
Get Spring MVC Beginner’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.