请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

最新springboot2.1配置废弃问题

在配置浏览器缓存时,resources.cache-period变为resources.cache.period,查看了下源码:
public void setPeriod(Duration period)
设置的类型为Duration,而不再是Integer,这个该怎么配置?
还有是否压缩的gzipped配置也废弃了,没找到。。。

正在回答

2回答

spring.resources.cache.period= # Cache period for the resources served by the resource handler. If a duration suffix is not specified, seconds will be used.

0 回复 有任何疑惑可以回复我~
若鱼1919 2019-01-28 08:43:37

spring.resources.chain.gzipped=false # Whether to enable resolution of already gzipped resources.

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号