반응형 excludeFilters1 컴포넌트 스캔의 필터 활용 - Spring 컴포넌트 스캔의 필터 활용 includeFilters : 포함할 필터 excludeFilters : 불포함할 필터 우선 사용자 정의 에너테이션을 하나 만든다. @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyExcludeComponent { } and @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyIncludeComponent { } 위에 붙은 여러 가지의 에너테이션은 @Component의 소스코드에서 가져온 것 그 다음에 빈이 될 클래스에 해당 어노테이션을 붙인다... 2023. 10. 27. 이전 1 다음 반응형