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.


Commandline Applications with Spring Boot

Last Update: 08.02.2018. By Jens in Newsletter | Spring Boot

Spring Boot is not only for server applications. Did you know you can write command line apps too?


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.


What is Spring Data actually?

Last Update: 28.08.2017. By Jens in Spring Boot | Spring Data

In my Spring Boot workshop last week one of the participants asked me to clarify what Spring Data actually is. He came from a different background and was confused how Spring Data, JPA, Hibernate and NoSQL relate and what role Spring Data plays. Indeed, if you switch contexts, it may look strange at first. However, it is not, and I write today the same I answered in the workshop.


How to Use Basic Auditing with Spring Data

Last Update: 03.08.2017. By Jens in Spring Boot | Spring Data

One of the many things Spring Data offers is a basic auditing functionality. It is great if you only need to track who made changes to your model and when. So, let’s stop the talking and dive into it.


How to Use MongoDB with Spring Boot and Spring Data

Last Update: 02.08.2017. By Jens in Spring Boot | Spring Data

Working with Spring Data has the huge benefit that you work with a common interface regardless of the underlying storage medium. Yet, it’s still transparent enough. In today’s tutorial, we will use it with a MongoDB.


Expose Your Spring Data Repositories as a REST API

Last Update: 01.08.2017. By Jens in Spring Boot | Spring Data

There’s an easy way to build a REST API for your Spring Data repositories instantly. It doesn’t matter if you are using JPA, MongoDB or any of the other stores available with Spring Data. Spring Data REST is the little helper. In this tutorial, we will take a closer look at how you can use it.


Is Spring Boot for Microservices only?

Last Update: 12.07.2017. By Jens in Spring Boot

Last week I was chatting with a friend and he told me how lucky he is that a part of their system moved to using Spring Boot. It made his life easier with development and testing. He actually loved writing tests now. However, one of his colleagues did question the decision to go with Spring Boot because Spring Boot is meant to be used with Docker and for microservices only. I was baffled but it seems there’s a lot of confusion what Spring Boot actually is and when to use it. This article does shed some light on it.


Deploying a Spring Boot Application to Heroku

Last Update: 27.06.2017. By Jens in Spring Boot

This post is the second part of a series of how to deploy a Spring Boot application to the cloud. We’ll deploy to Heroku today.