I just announced the new Spring 5 modules in REST With Spring:
Spring MVC provides tools driving both typical web applications as well as REST APIs.
Let’s jump right in.
Basic Concepts in Spring MVC
Starting at the top – this is a simple Spring MVC tutorial showing how to set up a Spring MVC project, both with Java-based configuration, as well as with XML-based configuration.
A simple tutorial showing how to set up the most common view resolvers and how to use multiple ViewResolvers within the same configuration.
We have a look at Spring forms and data binding to a controller.
Thymeleaf is a templating language with excellent integration with Spring.
This article provides an introduction to using Thymeleaf in a Spring MVC application.
We look at the use of the core org.springframework.ui.Model, org.springframework.ui.ModelMap and org.springframework.web.servlet.ModelView classes.
Explore the main annotations you can use to handle HTTP requests and responses in Spring MVC.
We demonstrate the usability and functionality of the annotation, through a common concept: a form submitted from a company’s employee.
A quick guide to the @RequestMapping annotation in Spring.
Learn about the differences between @Controller and @RestController annotations in Spring MVC.
Learn about the Spring @RequestBody and @ResponseBody annotations.
Intermediate Concepts in Spring MVC
Here, we take a look at what it takes to create a simple Spring MVC project with the Kotlin language.
How to map and handle static resources with Spring MVC – use the simple configuration, then the 3.1 more flexible one and finally the new 4.1 resource resolvers.
This article demonstrates two ways to return custom HTTP status codes from Spring MVC controllers: using ResponseEntity and using exceptions.
How to implement the content negotiation in a Spring MVC project.
We introduce the Spring MVC HandlerInterceptor and show how to use it properly.
Here, we focus on what Spring offers for multipart (file upload) support in web applications.
We illustrate how to return images and other media using the Spring MVC framework.
We create a custom validator to validate a form with a phone number field, then show a custom validator for multiple fields.
We have a look at the HttpMediaTypeNotAcceptableException exception and see cases where we might encounter it.
In this tutorial, we set up customized error pages for a few HTTP error codes.
Here, we show how we can use Spring’s Data Binding mechanism in order to make our code more clear and readable by applying automatic conversions.
We focus on the various handler adapters implementations available in the Spring framework.
We have a look at implementing client-side validation of form input using AngularJS and server-side validation using the Spring MVC framework.
We focus on using Velocity with a typical Spring MVC web application.
How to configure FreeMarker for use in Spring MVC as an alternative to JSP.
In this article, we integrate Apache Tiles with Spring MVC.
Advanced Concepts in Spring MVC
We demonstrate how to upload Excel files and display their content in a web page using the Spring MVC framework.
We focus on the Servlet 3 support for async requests, and how Spring MVC and Spring Security handle these.
We show how we can simplify complex GET requests that use either variable or optional path parameters inside the different path segments of a URI.
Quick and practical guide to session management with Spring MVC’s HandlerInterceptor.
We discuss new features of Thymeleaf 3.0 in Spring MVC with Thymeleaf application.