Spring MVC
Consume RESTful API using Spring Framework’s RestClient
If your application uses Spring Framework 7 or later, you can now use the RestClient class to consume RESTful APIs. How exactly? Let’s find out in this tutorial! For example, I will create a new Spring Boot project version 4.0.0 or later, using the Web… Read More
Video: API Versioning with Path Parameters in Spring Framework 7 | Clean & Future-Proof REST APIs
Video: API Versioning with Request Headers in Spring Framework 7 — Best Practice Guide
Supported versions with API versioning using the Spring framework
When enabling API versioning using Spring Framework 7 or later, in addition to defining the default version for endpoints that do not have a version defined, you can also define a list of versions supported by your API by using the addSupportedVersions() method when configuring… Read More
API Versioning using path parameter with Spring framework
In the previous tutorial, I showed you how to enable API Versioning for the request header in a Spring application. In this tutorial, we will continue to learn how to enable API Versioning for the path parameter! I will also create a new Spring Boot… Read More
Create Spring MVC project using Maven
I showed you how to Create Spring web application using Spring Legacy Project in Spring Tool Suite 3. The disadvantage of this way is that you have to use Spring Tool Suite 3 even though Spring Tool Suite 4 has been released a long time… Read More
Internationalization in Spring MVC
Internationalization is a feature of modern web applications, capable of displaying interfaces in multiple languages from different countries. For example, if your web application can display English, Vietnamese, German, Korean, Japanese, then users who know one of these languages can choose the language they are… Read More
Configure Spring MVC with WebApplicationInitializer and WebMvcConfigurer
When creating a Spring MVC project using the Spring Tool Suite 3 IDE, you can see, we have a web.xml file that defines the configuration for the DispatcherServlet, the root-context.xml and the servlet-context.xml files define bean configuration in Spring container including ViewResolver, a Controller handle… Read More
Validate request data in Spring MVC with Bean Validation
When building any application, it is necessary to handle all possible behaviors when users use our application. One of the cases you will often face when working with Spring MVC applications is that the request data that the user transmits will not correct the expectation… Read More


