最新springboot2.1配置废弃问题

来源:6-5 秒杀接口前后端分离

weixin_慕少5105451

2019-01-26

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

写回答

2回答

若鱼1919

2019-01-28

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
1
weixin_慕少5105451
非常感谢!
2019-01-28
共1条回复

若鱼1919

2019-01-28

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

0
0

Java秒杀系统方案优化 掌握海量访问通用解决方案

各种缓存/JSR303参数检

2695 学习 · 941 问题

查看课程