🎉 The 4th edition of my book Taming Thymeleaf is out! It has been fully updated for Spring Boot 4, Java 25 and Tailwind CSS 4, and it switches the frontend build over to Vite.
Check out the launch video:
What is new in the 4th edition?
Every chapter and every example project has been reworked for the current versions of the Spring and frontend ecosystem. The most important changes are:
-
Spring Boot 4.1.1: all code in the book now runs on the latest Spring Boot.
-
Java 25: the book now uses the current LTS version of Java.
-
Vite for the frontend build: the live reload setup now uses Vite instead of npm scripts. Together with vite-plugin-spring-boot, this gives you a fast development loop where the browser reloads automatically whenever you change a template, CSS or JavaScript file.
-
Tailwind CSS 4: the application is styled with Tailwind CSS 4, compiled through the Tailwind CSS Vite plugin, and uses Tailwind Plus Elements for interactive components like the user menu.
-
Cally date picker: the unmaintained Duet Date Picker has been replaced with Cally in chapter 16.
-
Testcontainers with
@ServiceConnection: the tests no longer configure Testcontainers via the JDBC URL, but via a@Beanannotated with@ServiceConnection. -
Cypress 16.1.0: the end-to-end tests have been updated to the latest Cypress version.
The source code of all the examples is available on GitHub.
Get the book
If you already bought Taming Thymeleaf on Leanpub, you can download the 4th edition for free.
If you don’t have the book yet, head over to the Taming Thymeleaf page for more information and the links to buy it.
If you have any questions or remarks, feel free to post a comment at GitHub discussions.