Property Handling and Profiles - Part 2

21.03.2018 by Jens in Spring Boot | Newsletter

Using –spring.profiles.active is not the only way to set the active profile. Reader Sandeep came up with an excellent question:


Property Handling and Profiles

20.03.2018 by Jens in Spring Boot | Newsletter

When we start to define properties, sooner than later, we are facing the problem of having environment specific ones like DB connections, paths in the filesystem, etc.


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.


Let's Build an API Together - Part 33

16.02.2018 by Jens in API Series | APIs | Newsletter

In the last recap session, we take a look at doing validations.


Let's Build an API Together - Part 32

15.02.2018 by Jens in API Series | APIs | Newsletter

One way of handling errors in Spring MVC is by declaring a responsible class using the @ControllerAdvice annotation.


Let's Build an API Together - Part 31

14.02.2018 by Jens in API Series | APIs | Newsletter

Swagger is a tool for documenting APIs, primarily driven from a coding side and a universal docs client.