2016년 7월 10일 일요일

@ComponentScan

1. @Component 어노테이션이 적용된 클래스를 검색하여 빈으로 등록합니다.
2. XML이나 Annotation 두 가지 방법 중 하나를 선택할 수 있습니다.
   XML : <context:component-scan>
   Annotation : @ComponentScan
3. base 패키지를 지정할 수 있습니다. 


//=================================원문=================================//
org.springframework.context.annotation

Annotation Type ComponentScan

댓글 없음:

댓글 쓰기