Changing the Thymeleaf Template Directory in Spring Boot 1. Introduction Thymeleaf is a template engine that we can use for our Spring Boot applications. As with many things, Spring Boot provides a default location where it expects to find our templates. In this short tutorial, we’re going to look at… Continue Reading spring-thymeleaf-template-directory

Jackson Unmarshalling JSON with Unknown Properties 1. Overview In this article, we’re going to take a look at the unmarshalling process with Jackson 2.x – specifically at how to deal with JSON content with unknown properties. If you want to dig deeper and learn other cool things you can do… Continue Reading jackson-deserialize-json-unknown-properties

A Quick Guide to Spring @Value 1. Overview In this quick article, we’re going to have a look at the @Value Spring annotation. This annotation can be used for injecting values into fields in Spring-managed beans and it can be applied at the field or constructor/method parameter level. Further reading:… Continue Reading spring-value-annotation

Guide to CopyOnWriteArrayList 1. Overview In this quick article, we’ll be looking at the CopyOnWriteArrayList from the java.util.concurrent package. This is a very useful construct in the multi-threaded programs – when we want to iterate over a list in a thread-safe way without an explicit synchronization. 2. CopyOnWriteArrayList API The… Continue Reading java-copy-on-write-arraylist