How to implement custom parameter mapping in Spring MVC

Last Update: 06.08.2018. By codeboje in Spring MVC | Spring Boot

In this tutorial, we will discuss HandlerMethodArgumentResolver which is being used to resolve the arguments of the public MVC methods (handler methods). To understand this feature in depth, we will look at different out of the box method argument resolvers and how we can a write custom argument resolver. We will take an example of resolving the hostname (domain) of the server.

Receiving a Paddle WebHook in Spring Boot

Last Update: 02.03.2018. By Jens in Spring Boot | Spring MVC | Newsletter

In this short tutorial, we’ll cover how to receive a webhook from Paddle in Spring Boot properly.

Making Requests using Spring's RestTemplate

Last Update: 09.02.2018. By Jens in Newsletter | Spring Boot | Spring MVC

The RestTemplate is a little helper class that makes calling web requests an easier. Instead of wrangling with protocols and transformation by ourselves, we get that out of the box by Spring MVC.

Get Your DB Model as a Method Parameter in Your Controller

Last Update: 07.09.2017. By Jens in Spring Boot | Spring MVC | Spring Data

In your Spring MVC application, you will usually have at least one endpoint which accepts and ID as a path variable or request parameter, and often the next thing you will do is to load the model from your Spring Data repository. However, there is an easier way as you will see in a minute.

Easy Pagination With Spring Data and MVC

Last Update: 31.08.2017. By Jens in Spring Boot | Spring Data | Spring MVC

In this tutorial, I show you an easy way for handling pagination when you use Spring Data and Spring MVC in your application you might not be aware of.

Detecting a Mobile Device with Spring Boot

Last Update: 15.06.2017. By Jens in Spring Boot | Spring MVC

Detecting mobiles is straight forward with Spring Boot when you know there’s a secret module that does the heavy lifting: Spring Mobile.

Uploading a File(s) with Spring MVC and Spring Boot

Last Update: 23.05.2017. By Jens in Spring Boot | Spring MVC

Uploading a file with Spring MVC is pretty easy, and it gets even easier when running in Spring Boot. However, it’s one of the tasks a developer does once in a while and therefore is pretty easy to forget. The page is a reminder for all of us.

How to Handle Java 8 Dates and Time with Jackson in Spring Boot (JSR-310)

Last Update: 04.05.2017. By Jens in Spring Boot | Spring MVC

When you are starting a new Spring Boot application today, you will probably want to use Java 8. However, it still can be tricky with certain frameworks when using new features like the Date and Time API (known as JSR-310).

How to return XML in Spring MVC Rest APIs

Last Update: 24.04.2017. By Jens in Spring Boot | Spring MVC

Sometimes you still need to return XML in your Rest API for various reasons. When you build your API with Spring Boot and Spring MVC, it is a simple, easy task.