0

Every time i change something on html file i have to restart the whole project. i tried:-

-> Edit Configurations -> server and changed on frame detection to update resources.

enter image description here

on my server tab update resources on frame detection is also on. but still i cannot update my html files and i have to restart server to reflect my changes.

enter image description here

Intellij Idea version is 2017.

blurfus
  • 13,485
  • 8
  • 55
  • 61
sagar limbu
  • 1,202
  • 6
  • 27
  • 52

2 Answers2

6

You have to add this option in your properties file:

spring.thymeleaf.cache=false

Here is the documentation that explains this feature.

Juan Carlos Mendoza
  • 5,736
  • 7
  • 25
  • 50
  • where do i pu this spring.thymeleaf.cache=false ? i put it inside resources > application.properties. but it is not working? – sagar limbu Aug 29 '17 at 02:40
  • Try to clear your browser's cache as @ochi said. [Here](https://stackoverflow.com/questions/14659142/spring-mvc-with-thymeleaf-update-static-data) is a post that could help you too. – Juan Carlos Mendoza Aug 29 '17 at 02:51
1

As @Juan Carlos Mendoza says you have to add this property

spring.thymeleaf.cache=false

Plus to update the resources, hit Ctrl+F9 then the project will build the new resources and make them available

cralfaro
  • 5,822
  • 3
  • 20
  • 30