저번 포스팅에서 살펴봤던 자동 설정을 실습을 통하여 살펴보고자 한다. 먼저, AutoConfigure를 제공할 프로젝트를 생성하고 아래의 과정을 진행한다. (물론 해당 의존성을 주입받을 프로젝트도 준비하자.) Step 1. Creation AutoConfigure Project 1. pom.xml chany spring-boot-starter 1.0-SNAPSHOT org.springframework.boot spring-boot-autoconfigure org.springframework.boot spring-boot-autoconfigure-processor true org.springframework.boot spring-boot-configuration-processor true org.sprin..
Spring Boot에서 Bean은 총 2단계로 등록이 된다. 그 내용을 살펴보기 전에 먼저, @SpringBootApplication을 확인해보면 아래와 같은 구조로 되어 있는 것을 볼 수 있다. @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class), @Filter(type = FilterType.CUSTOM, classes = Auto..