spring boot 2.x设置静态资源缓存时间 Home » 编程开发 » spring boot 2.x设置静态资源缓存时间 spring boot 2.x设置静态资源缓存时间 添加内容: spring.resources.cache-period=2d 解释: 2d—>>2天 2s—->>2秒 2m—>>2分钟 2h—->>2小时 注意:spring boot 2.0 必须配置单位