In my Spring Boot (2.4.2) app, I have some Thymeleaf templates in the src/main/resources/templates directory. I have spring-boot-devtools installed which automatically reloads classes when the code changes.
I would like the Thymeleaf templates to also be automatically reloaded when they are changed. I've tried adding the following to the local application configuration
spring:
thymeleaf:
cache: false
But it doesn't seem to work, i.e. the templates are loaded only on startup, so I need to restart the serve after changing them. How can I enable automatic reloading of the Thymeleaf templates?
Update
In response to some of the comments: I run the app from IntelliJ IDEA.