Spring: Spring MVC
Offered By: LinkedIn Learning
Course Description
Overview
Get started with Spring MVC, an essential web framework for Java developers who work on enterprise-level projects.
Syllabus
Introduction
- Spring MVC for robust applications
- What you should know
- Exercise files and the demo app
- Why use Spring MVC?
- Features of Spring MVC
- Spring MVC architecture
- Create Maven Spring MVC project
- Add folders and static files
- Java configuration for Spring MVC
- Add controllers and test the application
- Generate Spring MVC project with Spring Boot
- Add static files and view resolver
- Add controllers and test the application
- Basic annotations for controllers
- Create a controller with request mapping
- @RequestParam in Controller
- Add database code
- Access data from Model
- @ModelAttribute: Add JSP pages
- @ModelAttribute: Access model attributes on JSP
- @ModelAttribute: Add Spring form tag library
- Test the application
- Validating data in models
- Add validations to user bean
- Spring tags for errors
- Localizing error messages
- Binders overview
- Binders demo
- Convertors overview
- Convertors demo
- DispatcherServlet and special bean types
- Exception flow handler implementations
- Custom error page and Login controller
- Add method for selecting a user
- Add exception handler in Controller
- Global exception handler for application
- Default model attributes using @ControllerAdvice
- Conventional HTTP request processing
- Spring MVC async processing under the hood
- Async configuration
- Return callable in Controller
- DeferredResult implementation for async
- What are view resolvers?
- Using XmlViewResolver
- Using ResourceBundleViewResolver
- Chaining view resolvers
- Chaining view resolvers demo
- Introduction to interceptors
- Built-in and custom interceptors
- Add interceptor class
- Register interceptors
- Request and session attributes
- Save and get SessionAttributes demo
- Test session flow and implement forwarding
- End HttpSession
- Redirecting outside an application
- Introduction to themes
- Define themes and theme resolver
- Define ThemeChangeInterceptor
- Pick themes on JSPs
- Introduction to l10n and i18n
- Automatic locale resolution demo
- CookieLocaleResolver and interceptor for l10n and i18n
- RESTful services recap
- Use @Controller and @ResponseBody
- Use @RequestController and @ResponseEntity
- Use @PathVariable and @RequestParam to get request payload
- Use @RequestBody and @ResponseEntity
- Use @ExceptionHandler
- Testing the @ExceptionHandler with the @ResponseEntity
- MVC vs. REST controllers
- Next steps
Taught by
Ketkee Aryamane
Related Courses
A Simple Picture Storing App with Java and Android StudioCoursera Project Network via Coursera Advanced Data Structures in Java
University of California, San Diego via Coursera Advanced Java Concurrency
Vanderbilt University via Coursera Advanced Monitoring and Optimizing with DynamoDB (Spanish)
Amazon Web Services via AWS Skill Builder Advanced Monitoring and Optimizing with DynamoDB (Simplified Chinese)
Amazon Web Services via AWS Skill Builder