采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
在配置浏览器缓存时,resources.cache-period变为resources.cache.period,查看了下源码: public void setPeriod(Duration period) 设置的类型为Duration,而不再是Integer,这个该怎么配置? 还有是否压缩的gzipped配置也废弃了,没找到。。。
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.
非常感谢!
spring.resources.chain.gzipped=false # Whether to enable resolution of already gzipped resources.
登录后可查看更多问答,登录/注册
各种缓存/JSR303参数检
1.7k 17
1.4k 17
1.4k 16
1.5k 13
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号