필터와 중복 등록
필터
// TYPE: 클래스 레벨에 붙게 설정
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MyIncludeComponent {
}@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MyExcludeComponent {
}@MyIncludeComponent
public class BeanA {
}@MyExcludeComponent
public class BeanB {
}FilterType 옵션
ANNOTATION
ASSIGNABLE_TYPE
ASPECTJ
REGEX
CUSTOM
중복 등록과 충돌
자동 빈 등록 + 자동 빈 등록
수동 빈 등록 + 자동 빈 등록


Last updated