🍃 Spring Boot

Spring Boot MVC

14 lessons in this section of the Spring Boot tutorial. Work through them in order, or jump to the one you need.

  1. 1.Spring MVC Architecture

    Spring MVC is the web framework at the core of Spring Boot's REST API support.

  2. 2.DispatcherServlet

    DispatcherServlet is the front controller of Spring MVC.

  3. 3.REST Controller Basics

    A REST controller in Spring Boot is a class annotated with @RestController that handles HTTP requests and returns serialized response bodies.

  4. 4.Request Mapping

    Request mapping binds HTTP requests to handler methods.

  5. 5.Request Parameters

    Spring Boot binds incoming HTTP data to method parameters through a set of binding annotations.

  6. 6.Response Handling

    Spring Boot serializes controller return values to the HTTP response body using HttpMessageConverters.

  7. 7.View Resolver

    ViewResolver is the Spring MVC component that maps a logical view name — a string returned by a controller method — to a concrete View implementation that renders the…

  8. 8.Model

    Model is the Spring MVC interface for passing data from a controller to a view template.

  9. 9.ModelAndView

    ModelAndView is a Spring MVC holder that combines a logical view name and model data in a single return value.

  10. 10.Form Handling

    Form handling in Spring MVC covers the complete lifecycle of an HTML form: rendering an empty or pre-populated form, binding submitted data to a Java object with…

  11. 11.Form Validation

    Form validation in Spring MVC combines Bean Validation (JSR-380) annotations on the form object with BindingResult to capture errors and re-render the form with…

  12. 12.Thymeleaf Integration

    Thymeleaf is the recommended server-side template engine for Spring Boot.

  13. 13.JSP Integration

    JavaServer Pages (JSP) is the original Java view technology, predating Spring MVC.

  14. 14.Static Resources

    Static resources are files served directly to the browser without server-side processing — CSS, JavaScript, images, fonts, and other assets.