【Spring Boot】关于thymeleaf热部署的坑

使用IDEA

   

application.properties中添加

#关闭thymeleaf缓存
spring.thymeleaf.cache=false

设置idea --> File --> Settings --> 查找 build project automatically --> 选中


设置idea --> File --> Settings --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running



重启IDEA



设置Chrome


猜你喜欢

转载自blog.csdn.net/qq654129588/article/details/80249558