Spring boot 2.4开启静态资源缓存 yml配置: spring: web: resources: cache: cachecontrol: no-store: false max-age: 10000 no-cache: false