/**
classpath:/static
classpath:/public
classpath:/resources/
classpath:/META-INF/resources
예) “/hello.html” => /static/hello.html
spring.mvc.static-path-pattern: 맵핑 설정 변경 가능
# application.properties
spring.mvc.static-path-pattern=/resources/**
spring.mvc.static-locations: 리소스 찾을 위치 변경 가능
위치 추가 설정 (추천)
If-Modified-Since
헤더를 읽고 304나 200을 내려줌WebMvcConfigurer의 addRersourceHandlers로 커스터마이징 할 수 있음
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/m/**")
.addResourceLocations("classpath:/m/")
.setCachePeriod(20);
/
로 끝나야 한다.