6. 컴포넌트 스캔


컴포넌트 스캔과 의존관계 자동 주입

AutoAppConfig.java

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(
	excludeFilters = @Filter(type = FilterType.ANNOTATION, classes =
Configuration.class))

public class AutoAppConfig {
}

탐색 위치와 기본 스캔 대상