
[스프링 부트 개념과 활용] SpringApplication 2부
2022. 5. 3. 15:55
무조건 따라하기/스프링부트(SpringBoot)
#1.7. Application Events and Listeners #Application 실행 후 뭔가 실행하고 싶을 때 ApplicationRunner를 추천 #1.7. Application Events and Listeners Application과 같은 동선에 sampleListener 를 생성하고 ApplicationListener클래스를 implments 해주고 빈등록과 오버라이드를 해주면 끝 여기서는 문서에 나와있는 ApplicationStartingEvent를 등록해주었다. package com.example.springapplication; import org.springframework.boot.context.event.ApplicationStartedEvent; import org...

[스프링 부트 개념과 활용] SpringApplication 1부
2022. 5. 3. 15:29
무조건 따라하기/스프링부트(SpringBoot)
글을 쓰게 된이유 학원에서 스프링을 배웠다 하지만 그 스프링도 맛보기로 배운 스킬 실무에서는 스프링부트를 사용하기에 나는 많이 다르다고 느꼈다. 그리고 편리한 기능도 많고 좋은기능도 많다는 것을 알게 되었지만 스프링부트에 대해서 더 많이 알고싶어 강의를 수강했다. 그 강의의 내용을 바탕으로 글을 쓸 예정이다. Core Features Spring Boot lets you externalize your configuration so that you can work with the same application code in different environments. You can use a variety of external configuration sources, include Java propertie..