SpringBoot thymeleaf——修改后如何实时生效

开发期间模板引擎页面修改以后,要实时生效
1.禁用模板引擎的缓存
#禁用缓存
spring.thymeleaf.cache=false 
2.页面修改完成以后ctrl+f9:重新编译;
posted @ 2021-10-12 10:44  kht  阅读(429)  评论(0编辑  收藏  举报