Summary

In this chapter, you learned about the role of a Controller in Spring MVC first. Next you learned how to define a Controller and saw the usage of the @Controller annotation. After that, you learned the concept of relative request mapping, where you saw how to define request mapping on the Controller level and understood how Spring relatively maps a web request to the Controller's request mapping method. You also learned how the Dispatcher servlet uses handler mapping to find out the exact handler methods. You saw various parameter binding techniques such as URI template patterns, matrix variables, and HTTP GET request parameters to bind parameter with URL. Finally, you saw how to implement a master detail View.

In the next chapter, we are ...

Get Spring: Developing Java Applications for the Enterprise 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.