Spring/스프링 부트 개념과 활용
[스프링 부트 개념과 활용] 정적 리소스 지원
주멘이
2021. 1. 3. 16:20
● 기본 리소스 위치 (resources 부터 classpath)
○ classpath:/static
○ classpath:/public
○ classpath:/resources/
○ classpath:/META-INF/resources
○ 예) “/hello.html” => /static/hello.html
custom ResourceHandler 추가하는 법
/m 요청으로 들어올 경우, resource를 classpath:/m/ 에서 찾는다
캐싱전략도 따로 필요하다