문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot [2019/04/05 15:33] kwon37xi [SpringBoot WebMVC 정적 리소스(static resource)] |
springframework:springboot [2020/07/08 16:23] kwon37xi |
||
---|---|---|---|
줄 13: | 줄 13: | ||
* [[springframework: | * [[springframework: | ||
* [[springframework: | * [[springframework: | ||
+ | * [[https:// | ||
===== @EnableAutoConfiguration ===== | ===== @EnableAutoConfiguration ===== | ||
줄 45: | 줄 46: | ||
===== SpringBoot WebMVC 정적 리소스(static resource) ===== | ===== SpringBoot WebMVC 정적 리소스(static resource) ===== | ||
==== static resource 서빙 경로 ==== | ==== static resource 서빙 경로 ==== | ||
- | + | | |
- | | + | |
* jar 애플리케이션을 실행한 디렉토리 하위의 '' | * jar 애플리케이션을 실행한 디렉토리 하위의 '' | ||
* '' | * '' | ||
줄 58: | 줄 58: | ||
} | } | ||
</ | </ | ||
+ | |||
==== static resource 관련 프라퍼티 ==== | ==== static resource 관련 프라퍼티 ==== | ||
+ | * [[https:// | ||
< | < | ||
+ | spring.mvc.static-path-pattern=/ | ||
+ | |||
server.compression.enabled=true | server.compression.enabled=true | ||
spring.resources.chain.cache=true | spring.resources.chain.cache=true | ||
줄 66: | 줄 70: | ||
spring.resources.cache-period=3600 | spring.resources.cache-period=3600 | ||
</ | </ | ||
+ | |||
+ | |||
===== 참고 ===== | ===== 참고 ===== | ||
* [[http:// | * [[http:// |