Difference between <context:annotation-config> and <context:component-scan>
问题 I\'m learning Spring 3 and I don\'t seem to grasp the functionality behind <context:annotation-config> and <context:component-scan> . From what I\'ve read they seem to handle different annotations ( @Required , @Autowired etc vs @Component , @Repository , @Service etc), but also from what I\'ve read they register the same bean post processor classes. To confuse me even more, there is an annotation-config attribute on <context:component-scan> . Can someone shed some light on these tags? What\