Recent posts

Mar 1, 2021

AttributeConverter vs Embeddable in JPA

There are 2 choices when using Value Objects in JPA entities with Spring Boot: AttributeConverter or Embeddable. This blog post shows the differences between those and some guidelines when to use what.

Read More...

Feb 18, 2021

Error Handling Spring Boot Starter release 1.2.0

I just did release 1.2.0 of the error-handling-spring-boot-starter library. It allows now to customize how the error response is serialized to JSON.

Read More...

Feb 12, 2021

JUnit 5 test class orderer for Spring Boot

The upcoming JUnit 5.8.0 will support ordering the test classes in an arbitrary way. This blog post will show how to use that to order your Spring Boot tests from unit tests over test slices to the full integration tests, so the quickest tests run first.

Read More...

Jan 25, 2021

Using StringTrimmerEditor with Thymeleaf

Trimming whitespace is one of the little things that a developer should take care of when coding text inputs in an HTML form. Remembering to do this for each input will get tedious soon, and there is a big chance that you might forget about it sooner or later. Luckily, Spring has the StringTrimmerEditor class that allows to globally configure the trimming once.

Read More...

Jan 18, 2021

Using Hugo with Tailwind CSS 2

Tailwind CSS version 2 has recently been released. This blog post shows how to add Tailwind CSS to your Hugo generated blog. Make sure you have Hugo installed to follow along. I am using Hugo 0.79.0. You also need to have npm installed. I am using 6.14.7. Create a new Hugo site: hugo new site my-hugo-site my-hugo-site can be anything you want, it will also be the directory where the files are created.

Read More...

Jan 11, 2021

String concatenation with Thymeleaf

This post shows the various ways that you can concatenate string values with Thymeleaf.

Read More...

Jan 8, 2021

Practical Guide to Building an API Back End with Spring Boot made it to the Best New REST API Books

I’m happy to announce that my book, "Practical Guide to Building an API Back End with Spring Boot", made it to BookAuthority’s Best New REST API Books: https://bookauthority.org/books/new-rest-api-books?t=16x1w7&s=award&book=0359044522 BookAuthority collects and ranks the best books in the world, and it is a great honor to get this kind of recognition. Thank you for all your support! The book is available for purchase on Amazon.

Read More...

Jan 5, 2021

Using Google Charts with Thymeleaf

There are a few options to add charts to your Thymeleaf application, but one of the easiest is to integrate Google Charts. They are powerful, simple to use and free. This blog post will show how we can integrate them into a Thymeleaf/Spring Boot application.

Read More...

Dec 26, 2020

Architecture Decision Records

I have been using Architecture Decision Records (ADR) documents on my latest projects. This blog post will show you what they are and how you can use them. I will also show a few examples that can serve as inspiration for your project.

Read More...

Dec 21, 2020

Release Taming Thymeleaf book

I am thrilled to announce the release of my book Taming Thymeleaf on leanpub. This book aims to be a valuable resource to learn about Thymeleaf with Spring Boot.

Read More...