springboot application 之 spring.thmyleaf.cache 属性

spring.thmyleaf.cache 属性表示的是是否使用springboot静态文件缓存,值为true或者flase;默认为truecss

当为true时,当修改静态文件(html、css、js)时须要重启服务器才能够有效html

当为false时,当修改静态文件(html、css、js)时只要在浏览器端刷新就能够了spring

切记,不可再属性后加“;”,否则springboot启动会报错(须要boolean类型,却赋值为String类型)浏览器

正确配置:缓存

application.properties中springboot

spring.thymeleaf.cache=false服务器

 

小知识点,后继续补充app

相关文章
相关标签/搜索