springboot热加载

在springboot项目中修改freemark模板页面.ftl后,浏览器不能直接显示最新修改的页面,必须重新启动才可以

解决:

1、application.properties中增加配置 spring.freemarker.cache=false

2、windows系统Ctrl+Shift+F9

 

此时再刷新浏览器页面,已经是最新的了。

posted @ 2018-10-18 14:37  知了肥  阅读(211)  评论(0编辑  收藏  举报