Chapter 10: Controllers and Routing
Learning Objectives
- Understand the basic architecture of an MVC web application
- Build a Spring application that can handle various types of requests
Key Terminology
Simple Controllers
- route
Controllers
- endpoint
- routing
- Conventional routing
- attribute routing
- action method
- attribute
- [HttpGet]
- [HttpPost]
- [Route(“path”)]
Controllers with Parameters
- query string
Cleaning Up Your Controllers
- attribute routing
- attributes