Yes. <context-component-scan .. /> is responsible for detecting beans, annotated by @Component , @Controller , @Service , @Respository , etc.
To process annotations ( @Autowired , @Resource , etc.) you need <context:annotation-config /> . Thus, annotations are processed on beans, which are listed in applicationContext.xml .
As far as I know, <context-component-scan .. /> automatically activates <context:annotation-config /> .
This is true for both spring 2.5 and 3.0. (thanks scaffman)
source share