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

开发期间模板引擎页面修改以后,要实时生效

1)、禁用模板引擎的缓存

# 禁用缓存
spring.thymeleaf.cache=false 

2)、页面修改完成以后ctrl+f9:重新编译;

发布了56 篇原创文章 · 获赞 313 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/qq_14996421/article/details/100556561
今日推荐