package infra.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
@EnableWebMvc
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**").addResourceLocations("/static/app/");
    }
    
}

@@ -16,16 +16,68 @@
 onfig;%0A%0A
+import org.springframework.context.annotation.Bean;%0A
 import o
@@ -129,16 +129,16 @@
 ration;%0A
-
 import o
@@ -363,16 +363,82 @@
 Adapter;
+%0Aimport org.springframework.web.servlet.mvc.WebContentInterceptor;
 %0A%0A@Confi
@@ -607,16 +607,16 @@
 stry) %7B%0A
-
         
@@ -699,10 +699,337 @@
  %7D%0A    %0A
+    @Bean%0A    public WebContentInterceptor webContentInterceptor() %7B%0A        WebContentInterceptor interceptor = new WebContentInterceptor();%0A        interceptor.setUseCacheControlHeader(true);%0A        interceptor.setUseExpiresHeader(true);%0A        interceptor.setCacheSeconds(31556926);%0A        return interceptor;%0A    %7D%0A    %0A
 %7D%0A

Add WebContentInterceptor in Spring MVC config