Every time you modify thymeleaf's templates, you need to restart spring boot. Although spring boot has a good startup speed, it is still very troublesome. Google has usedspring-boot-devtools
to achieve hot plugging.
Mypom.xml
joined:
org.springframework.boot spring-boot-devtools 1.3.0.RELEASE true
But this still has no effect, but I usemvn spring-boot:run
After starting, after modifying thymeleaf's templates, I must restart to update the templates. At the same time, I have setBuild project automatically
inintellij-idea.
What is the reason why hot swapping is invalid?
It may be thymeleaf’s cache and settings
spring.thymeleaf.cache=false