Get Your DB Model as a Method Parameter in Your Controller

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

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

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

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.


Handling Java 8 Dates and Time with Jackson (JSR-310)

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).


Spring MVC: XML Responses in your Rest API

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.