개인공부/스프링부트
스프링 부트 - 다양한 설정 (debug, 배너)
무제1351
2020. 10. 20. 22:24
VM option 에 DEBUG설정
기본 옵션으로 Application을 구동하면
이렇게 INFO만 찍혀나온다.
하지만 Run/Debug Configurations에 들어가 VM options 에 -Ddebug를 설정해주면
아래와 같이 DEBUG가 같이 찍혀나온다.
어떠한 자동설정이 적용됐는지
그리고 자동설정이 왜 적용이 안되었는지 나온다.
배너설정
src/main/resources 디렉토리에 banner.txt 파일을 만든후 위와 같이 자기가 원하는대로 작성.
아래와 같이 자신이 만든 배너가 뜬다
배너 관련 스프링 문서.
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
응용하면 이런 영양가 없는 짓도 할수 있다.
출저 - 인프런/스프링부트 개념과 활용 -백기선님