最新springboot2.1配置废弃问题
来源:6-5 秒杀接口前后端分离

weixin_慕少5105451
2019-01-26
在配置浏览器缓存时,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.
012019-01-28 -
若鱼1919
2019-01-28
spring.resources.chain.gzipped=false # Whether to enable resolution of already gzipped resources.
00
相似问题