<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69" -->

---
title: TodoMVC with Spring Boot and Thymeleaf (Part 2) | daily.dev
description: Part 2 of building a TodoMVC app with Spring Boot and Thymeleaf covers implementing todo item completion and deletion. It walks through updating the Thymeleaf...
canonical: https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: TodoMVC with Spring Boot and Thymeleaf (Part 2) | daily.dev
og:description: Part 2 of building a TodoMVC app with Spring Boot and Thymeleaf covers implementing todo item completion and deletion. It walks through updating the Thymeleaf...
og:url: https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69
og:image: https://api.daily.dev/og/posts/mQaV7Te69.png
og:image:alt: TodoMVC with Spring Boot and Thymeleaf (Part 2)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TodoMVC with Spring Boot and Thymeleaf (Part 2)

**[Wim Deblauwe](https://daily.dev/sources/wim-deblauwe)** · 3 min read · 0 upvotes · 0 comments

## Summary

Part 2 of building a TodoMVC app with Spring Boot and Thymeleaf covers implementing todo item completion and deletion. It walks through updating the Thymeleaf fragment to include a form that sends a PUT request to toggle completion state, enabling the HiddenHttpMethodFilter in application.properties to support PUT/DELETE via HTML forms, and using th:classappend and th:attrappend to conditionally render CSS classes and HTML attributes based on item state.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.wimdeblauwe.com/blog/2021/09/23/todomvc-with-spring-boot-and-thymeleaf-part-2/>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#java](https://daily.dev/tags/java), [#spring-boot](https://daily.dev/tags/spring-boot)

[View this post on daily.dev](https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"TodoMVC with Spring Boot and Thymeleaf (Part 2)","url":"https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69"},"datePublished":"2026-03-16T08:14:54.258Z","dateModified":"2026-03-16T08:24:01.803Z","description":"Part 2 of building a TodoMVC app with Spring Boot and Thymeleaf covers implementing todo item completion and deletion. It walks through updating the Thymeleaf...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1de4eca16101bf4326a27bb28b3687b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c1de4eca16101bf4326a27bb28b3687b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Wim Deblauwe","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Wim Deblauwe","logo":"https://media.daily.dev/image/upload/s--g1qrglrf--/c_limit,w_256/f_auto,q_auto/v1773648779/logos/wim-deblauwe?_a=BAMAMiiu0","url":"https://daily.dev/sources/wim-deblauwe"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/todomvc-with-spring-boot-and-thymeleaf-part-2--mqav7te69","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,java,spring-boot","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Wim Deblauwe","item":"https://daily.dev/sources/wim-deblauwe"},{"@type":"ListItem","position":3,"name":"TodoMVC with Spring Boot and Thymeleaf (Part 2)"}]}
```

