A step-by-step tutorial building a TodoMVC application using Spring Boot and Thymeleaf for server-side rendering instead of a JavaScript SPA. Covers project setup via Spring Initializr with Maven, Java 17, Spring Data JPA, and H2 database. Walks through creating a JPA entity and repository, serving HTML with a controller, integrating CSS/JS via WebJars instead of npm, using Thymeleaf attributes (th:if, th:field, th:action, th:remove) to conditionally render UI, handling form submissions with a form data object and POST mapping, and displaying todo items using Thymeleaf fragments and DTOs.

7m read timeFrom wimdeblauwe.com
Post cover image
Table of contents
Add a new todo item

Sort: