From the course: HTMX with Thymeleaf in Spring Boot

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Changes with Spring Boot and htmx-spring-boot-thymeleaf

Changes with Spring Boot and htmx-spring-boot-thymeleaf - Spring Boot Tutorial

From the course: HTMX with Thymeleaf in Spring Boot

Changes with Spring Boot and htmx-spring-boot-thymeleaf

- [Instructor] Please open 05-06-begin/records-management in IntelliJ for this tutorial. Let's continue the necessary updates to our palm.xml for the HTMX Spring Boot Thymeleaf dependency. Let's open the Palm. We'll scroll down. We'll update both of these to 4.0.1. And click on the Maven icon here to reload the Maven dependencies. And finally, we're going to run maven clean install. And so there are errors because of the Spring HTMX library with the updates to its functionality that no longer exist. So let's go ahead and fix these. We'll open up the person controller. We'll start with the update method. We'll change this to View using the Spring framework web servlet. Right above line 189 at the end of 188, hit enter. We'll type return fragmentsRendering .with() and let's copy the view from below and paste it inside. At the end of the line, hit enter. We'll type .header(). Since this is a response object for retarget, we will type HtmxResponseHeader HX_RETARGET.getValue We'll add a…

Contents