CodexBloom - Programming Q&A Platform

Eclipse 2023-09: implementing Spring Boot DevTools not recognizing changes in Thymeleaf templates

👀 Views: 36 💬 Answers: 1 📅 Created: 2025-06-14
spring-boot thymeleaf eclipse Java

I've been struggling with this for a few days now and could really use some help. I'm currently working with a frustrating scenario with Spring Boot DevTools in Eclipse 2023-09 where changes made to my Thymeleaf templates are not being picked up automatically. I've ensured that the `spring-boot-devtools` dependency is included in my `pom.xml` as follows: ```xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> ``` Despite this, when I modify my `index.html` template located in `src/main/resources/templates`, the changes don’t reflect in the browser unless I manually restart the server. I have verified that the DevTools are enabled in the project settings and that automatic builds are turned on in Eclipse. Also, I’ve cleared the cache in my browser and even tried different browsers to ensure it’s not a caching scenario. In the console, I’m not seeing any specific behavior messages related to template loading. The application starts fine, but it seems to behave as if DevTools are not functioning. I’ve also checked that my `application.properties` file includes: ```properties spring.thymeleaf.cache=false ``` This should theoretically disable caching for Thymeleaf templates. I’ve tried cleaning the project and rebuilding it, but that hasn’t resolved anything either. Is there a specific configuration or setting in Eclipse that I might be overlooking? Any assistance would be greatly appreciated! For context: I'm using Java on Ubuntu.