Automatic Property Expansion with Spring Boot
1. Overview In this article, we'll explore the property expansion mechanism provided by Spring through Maven Build method. 2. Configuration In resource files, we can use ${...} placeholder as variables…
1. Overview In this article, we'll explore the property expansion mechanism provided by Spring through Maven Build method. 2. Configuration In resource files, we can use ${...} placeholder as variables…
Spring boot has a plethora of tools and configuration available and can be tweaked according to the project specific needs. We'are going to go over a few interesting configuration options…
In this article, we will discuss Spring 4.3. introduced HTTP method-specific shortcut variants of @RequestMapping. Spring RequestMapping new Shortcut Annotations are @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, and @PatchMapping. New Annotations Typically, if we want to implement the…
Introduction In Spring, there are many ways in which we can set the Status of the HTTPResponse. In this tutorial, we will achieve this using Spring ResponseStatus annotation. We can…
@RequestBody and @ResponseBody annotations are used to convert Body of HTTP request and response to Java class object. Both these annotations will use registered HTTP message converters in the process of converting/mapping…
Spring MVC Framework and REST Spring’s annotation-based MVC framework simplifies the process of creating RESTful web services. The key difference between a traditional Spring MVC controller and the RESTful web service…
1. Overview One of the most important Spring-MVC annotations is the @ModelAttribute annotation. The @ModelAttribute is an annotation that binds a method parameter or method return value to a named model attribute and then exposes it…
Overview In this quick tutorial, we’ll explore Spring's @RequestParam annotation. Simply put, we can use @RequestParam to extract query parameters, form parameters and even files from the request. We’ll discuss how to use @RequestParam and its…
Overview @RequestMapping is one of the most common annotation used in Spring Web applications. This annotation maps HTTP requests to handler methods of MVC and REST controllers. In this post,…