Complete Guide to Spring MVC
7h 47mAdvanced2025-02-19
Authors

Semirah Dolan
Engineer, Blockchain Developer, Speaker, Inventor, Instructor
Course details
Looking to upskill with Spring? This course provides a comprehensive overview of how to build web applications using the Spring Model-View-Controller (MVC) architectural pattern. With hands-on exercises and practical, real-world examples, instructor Semirah Dolan shows you what it takes to master the core concepts of Spring MVC, including controllers, views, models, and more. Along the way, learn how to handle HTTP requests, process data, and create dynamic user interfaces. Dive deeper into advanced topics like data validation, exception handling, and RESTful API development. By the end of this course, you'll be equipped with the skills you need to design and develop efficient, scalable web applications using Spring MVC.
Learning objectives
Design and develop robust web applications using the Model-View-Controller (MVC) architectural pattern and Spring MVC framework.
Utilize Spring MVC components and annotations to handle HTTP requests, process data, and render dynamic views.
Implement data binding, validation, and exception handling to ensure data integrity and user experience.
Create RESTful APIs using Spring MVC to enable data exchange between applications.
Integrate Spring MVC with other Spring modules such as Spring Data, Spring Security, and Spring Boot to build comprehensive enterprise applications.
Learning objectives
Design and develop robust web applications using the Model-View-Controller (MVC) architectural pattern and Spring MVC framework.
Utilize Spring MVC components and annotations to handle HTTP requests, process data, and render dynamic views.
Implement data binding, validation, and exception handling to ensure data integrity and user experience.
Create RESTful APIs using Spring MVC to enable data exchange between applications.
Integrate Spring MVC with other Spring modules such as Spring Data, Spring Security, and Spring Boot to build comprehensive enterprise applications.
Skills covered
SpringBack-End Web DevelopmentFull-Stack Web DevelopmentFront-End Web DevelopmentWeb DevelopmentOpen SourceOne-Off
Concepts
0. Introduction
- 01 - Spring MVC essentials
- 02 - What you should know
1. How to Build Serving Web Content with Spring MVC
- 03 - What you will build and what you need
- 04 - Start from scratch vs. skipping the basics
- 05 - Starting with Spring Initializr
- 06 - Skip basics - Source repository for this guide
- 07 - Create a web controller
- 08 - Spring Boot devtools
- 09 - Run the application
- 10 - Test the application
- 11 - Add a home page
- 12 - Summary and next steps
2. DispatcherServlet
- 13 - DispatcherServlet
- 14 - Request processing and handling
- 15 - View rendering and localization
- 16 - Data handling - Multipart Resolver
- 17 - Logging
3. Filters
- 18 - Form data
- 19 - Forwarded headers
- 20 - Shallow ETag
- 21 - CORS
4. Annotated Controllers
- 22 - Declaration overview
- 23 - Declaration - AOP proxies
- 24 - Mapping requests overview
- 25 - Mapping requests - URI patterns
- 26 - Mapping requests - Consumable media types
- 27 - Mapping requests - Producible media types
- 28 - Handler methods overview
- 29 - Handler methods - Method arguments
- 30 - Handler methods - Return values
- 31 - Handler methods - Type conversion
- 32 - Model
- 33 - @InitBinder overview
- 34 - Validation
- 35 - Exceptions overview
- 36 - Exceptions - Method arguments
- 37 - Exceptions - Return values
- 38 - Controller advice
5. Functional Endpoints
- 39 - Functional endpoints overview
- 40 - HandlerFunction overview
- 41 - HandlerFunction - ServerRequest & ServerResponse
- 42 - HandlerFunction - Handler classes
- 43 - HandlerFunction - Validation
- 44 - RouterFunctions and routing
- 45 - Serving static resources
- 46 - Running a server
- 47 - Filtering handler functions
6. URI Links
- 48 - URI handling and building
- 49 - Relative servlet requests
- 50 - Links to controllers
- 51 - Links in views
7. Asynchronous Requests
- 52 - DeferredResult
- 53 - Callable
- 54 - Request and response processing
- 55 - HTTP streaming overview
- 56 - Reactive types
- 57 - Context propagation
- 58 - Disconnects
- 59 - Configuring Spring MVC applications
8. CORS
- 60 - CORS introduction
- 61 - CORS configuration
- 62 - CORS filter
- 63 - CORS best practices and security
9. Error Responses
- 64 - Render
- 65 - Non-standard fields
- 66 - Customization and i18n
- 67 - Client handling
10. Web Security
- 68 - Spring MVC security
- 69 - Spring MVC test support
- 70 - CSRF protection
- 71 - Security response headers
11. HTTP Caching
- 72 - CacheControl
- 73 - Controllers
- 74 - Static resources
- 75 - ETag filter
12. Integrated Technologies
- 76 - Groovy Markup overview
- 77 - Thymeleaf
- 78 - FreeMarker overview
- 79 - Script views overview
- 80 - JSP and JSTL overview
- 81 - RSS and Atom
- 82 - PDF and Excel overview
- 83 - Jackson overview
- 84 - XML marshalling
- 85 - XSLT views overview
13. MVC Config
- 86 - Enable MVC configuration
- 87 - MVC config API
- 88 - Type conversion
- 89 - Validation
- 90 - Interceptors and handlers
- 91 - Controllers and views
- 92 - Advanced configuration
14. HTTP 2
- 93 - HTTP 2 overview
15. Conclusion
- 94 - Practice your knowledge
- 95 - What's next - Spring 7
- 96 - Conclusion
Related courses
- Spring Data 3
- Data Resilience with Spring and RabbitMQ Event Streaming
- Advanced Spring: Deploy Spring Boot Applications to AWS, Azure and GCP
- Spring 6: Design Patterns
- Learning Spring 6 with Spring Boot 3
- Advanced Spring: Effective Integration Testing with Spring Boot
- Spring Web MVC 6
- Spring Boot: Test-Driven Development