화면 성능 개선 전 학습 테스트
HTTP Cache, gzip,Servlet,Thread에 대한 학습 테스트를 진행 합니다.
학습 테스트
HTTP Cache
@Configuration
@EnableWebMvc
public class WebMvcConfig implements WebMvcConfigurer {
public static final String PREFIX_STATIC_RESOURCES = "/resources";
private final ResourceVersion version;
@Autowired
public WebMvcConfig(ResourceVersion version) {
this.version = version;
}
@Override
public void addInterceptors(final InterceptorRegistry registry) {
WebContentInterceptor interceptor = new WebContentInterceptor();
interceptor.addCacheMapping(CacheControl.noCache().cachePrivate(), "/");
registry.addInterceptor(interceptor);
}Servlet
Thread
Last updated