I have come across two elements in the Spring MVC, context:annotation-config and context:component-scan.
For me, it looks like context:component-scan performs the same job as context:annotation-config and also registers the new beans.I don't see any valid reason or scenario where we have to use context:annotation-config.
Please provide some insights if it gives any additional benefits in specific scenarios for Spring MVC applications.
            Asked
            
        
        
            Active
            
        
            Viewed 78 times
        
    0
            
            
        - 
                    1Don't use either in new code, and use Spring Boot with Java configuration instead. – chrylis -cautiouslyoptimistic- Apr 08 '15 at 10:37
- 
                    Yes, But my question is is there is any specific use for context:annotation-config – Krishna Apr 08 '15 at 10:38
- 
                    No, It's only used to activate annotations in beans already registered. – Ambika Oct 16 '16 at 15:35
 
    