mercredi 8 avril 2015

Do we require context:annotation-config in Spring MVC

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.


Aucun commentaire:

Enregistrer un commentaire