인프런 스프링 핵심 원리 요약 –
1. 자동 의존성 주입 – 자동 컨테이너 등록 앞의 예제에서는 Spring Bean을 등록할 때 구성 정보에 직접 등록해야 하는 Spring Bean을 Java 코드 또는 XML에서 @Bean을 통해 수동으로 등록했지만 Spring에서는 Spring Bean을 자동으로 등록하는 @ComponentScan이라는 기능을 제공합니다. 새로운 자동 구성을 수행하는 스케줄러 package hello.core; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; import static org.springframework.context.annotation.ComponentScan.*; @Configuration @ComponentScan … Read more