好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

解决spring.thymeleaf.cache=false不起作用的问题

spring.thymeleaf.cache=false不起作用

配置是清除缓存,实现热部署。

也就是修改了html后不用重启,刷新页面就能看到效果。

修改完html后一定要ctrl+f9重新build一下。

再回到浏览器刷新,就能看到效果了

thymeleaf缓存关闭

在application.properties或者application.yml中添加:

?

1

2

# 关闭thymeleaf缓存

spring.thymeleaf.cache= false

然后使用Ctrl + F9 重新Build一下,即可关闭Thymeleaf缓存。

以上为个人经验,希望能给大家一个参考,也希望大家多多支持。

原文链接:https://blog.csdn.net/Guesshat/article/details/109072165

查看更多关于解决spring.thymeleaf.cache=false不起作用的问题的详细内容...

  阅读:13次