Spring Boot Static resource 위치

이기현·2020년 12월 1일

Spring Boot

목록 보기
2/12

https://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot

https://atoz-develop.tistory.com/entry/spring-boot-web-mvc-static-resources

정적 리소스 Location(위치)
정적 리소스 location이란 서버가 정적 리소스를 찾을 디렉토리를 의미한다.

스프링 부트의 기본 정적 리소스 위치는 다음과 같다.

이는 ResourceProperties에 정의되어 있으며, 스프링 부트 1.5.3.RELEASE 부터 현재 기준 가장 최신 버전인 2.3.3.RELEASE 까지 동일하다.

classpath:/META-INF/resources/
classpath:/resources/
"classpath:/static/"
"classpath:/public/"

profile
실력을 쌓아가는 하루하루

0개의 댓글