Spring Boot MVC
12 lessons in this section of the Spring Boot tutorial. Work through them in order, or jump to the one you need.
- 1.Spring MVC Architecture
Spring MVC is the web framework at the core of Spring Boot's REST API support.
- 2.DispatcherServlet
DispatcherServlet is the front controller of Spring MVC.
- 3.REST Controller Basics
A REST controller's job is to translate HTTP into method calls and back: read the request, hand it to a service, and shape the response.
- 4.Response Handling
Everything a controller returns passes through an HttpMessageConverter that turns it into the response body, usually JSON via Jackson.
- 5.View Resolver
Learn how Spring MVC ViewResolver maps view names to templates: Thymeleaf, JSP, content negotiation, resolver order and fixes for common errors.
- 6.Model
Model is the Spring MVC interface for passing data from a controller to a view template.
- 7.ModelAndView
ModelAndView is a Spring MVC holder that combines a logical view name and model data in a single return value.
- 8.Form Handling
How a Spring MVC form works end to end: rendering the form, binding submitted data to a form object with @ModelAttribute, validating with Bean Validation, and the…
- 9.Form Validation
Server-side form validation in Spring MVC is a pipeline: the framework binds request parameters to a form object, runs Bean Validation constraints on it, and collects…
- 10.Thymeleaf Integration
Thymeleaf is the recommended server-side template engine for Spring Boot.
- 11.JSP Integration
How to use JavaServer Pages (JSP) with Spring Boot 3: why it needs WAR packaging and Tomcat Jasper, the dependencies and Jakarta Tags (JSTL 3) taglib URIs that trip up…
- 12.Static Resources
Spring Boot serves CSS, JavaScript, images, and fonts from the classpath with no configuration, and then gives you hooks for locations, caching, WebJars, and…