Properties handling - Placeholders

19.03.2018 by Jens in Spring Boot | Newsletter

We can also use placeholders in properties. A placeholder is a simple reference to another defined property, like a variable.

Basic properties handling - Part 3

16.03.2018 by Jens in Spring Boot | Newsletter

Using @Value to inject properties is fine as long as it is just a handful. When we have more, and they are grouped around a single configuration entity like all props for a remote connection, we can introduce a configuration class using the @ConfigurationProperties annotation of Spring Boot.

Basic properties handling - Part 2

15.03.2018 by Jens in Spring Boot | Newsletter

Properties in Spring are not limited to Strings. Sure, they are in the property file, but not necessarily as a field in our class. Whatever type we use, Spring will try to convert the string value from our input to the correct type.

Basic properties handling

14.03.2018 by Jens in Spring Boot | Newsletter

Spring makes it easy to inject configuration values from outside the code. Simple use the @Value annotation on a field and define the name of the property like:

Receiving a Paddle WebHook in Spring Boot

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

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

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?

Getting Started with Spring Session

27.09.2017 by Jens in Spring Boot

In this tutorial, we are going to look at Spring Session and build two applications which share the session in Redis.

Caching in Your Spring Boot Application

20.09.2017 by Jens in Spring Boot

One of the features of the Spring Framework is a cache you can transparently add to your code. All you need to do is set an annotation on a method you want to cache and configure the caching mechanism itself. Setting up the cache wasn’t a big deal before, and with Spring Boot it got even simpler. Let’s dive into it with an example.

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.