반응형
SMALL
요 근래 3~4일 간 spring 공부를 거의 하지 않았다 ㅠㅠ 개발을 하면서 느끼지 못했지만 기술 면접을 준비해보며 느낀 것은... 기초가 굉장히 중요하다는 것! 나는 개발만 하면 될 줄 알겠지라는 안일한 생각을 가지고 있었다. 반성해!
그래서, 반성할 겸 간단히 기초만 휘리릭 복습하고 넘어가는 글을 몇 개 업로드할 예정...
정적 컨텐츠(static content)란?
말 그대로 static이다. 변하지 않는 템플릿
웹 브라우저의 URL 요청을 받고 내장 서버 톰캣이 스프링 컨테이너에 우선적으로 요청을 넘겨주어, 일치하는 컨트롤러가 있는지 찾게 된다. 현재는 hello-static과 mapping 된 컨트롤러가 없는 상황. 따라서 resources 패키지로 이동해 static 내부의 hello-static.html 파일을 찾아 반환하게 된다.
정적 컨텐츠 공식 문서
공식 문서에 자세하게 나와 있다.
Spring Boot Features
Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest
docs.spring.io
반응형
LIST