3.10에서 살펴봤던 @Autowired 애노테이션을 사용할 때에도 기본 bean 설정은 XML을 통해서 했었습니다. 하지만 이번에는 암묵적으로 클래스패스에서 bean을 등록하는 방법과 필터와 매칭 되는 bean을 등록하는 방법을 살표보겠습니다.

3.11.1. @Component and @Repository

@Component 와 @Repository 애노테이션 사용해서 bean 등록하는 방법

http://whiteship.tistory.com/1042

3.11.2. Using filters to customize scanning

@Component 와 @Repository 애노테이션이 붙어 있으면 무조건 bean으로 등록이 되지만, filter를 사용하여 특정 클래스들을 bean으로 사용하는 것에서 제외할 수 있습니다.

3.11.3. Naming auto-detected beans

bean이름을 설정할 수 있습니다.

3.11.4. Providing a scope for auto-detected beans

bean의 scope을 지정해 줄 수 있습니다.