I am developing an application in Spring MVC framework using the @controller, @service & @repository stereo type annotations to mark my beans as spring beans and then using <context:component-scan>for scanning the beans at startup.
What makes me confuse is that what is the sequence spring follows to initialize a bean and injecting dependency in it. Does spring scans all the packages mentioned in <context:component-scan> tags and marking the stereo type annotated classes as beans and initializing them and then inject the dependency OR Does it scan the packages one by one and injecting the dependencies at the same time. So whats the sequence of this process?
dimanche 17 juillet 2016
Sequence of Execution For initializing Spring beans and dependency injection
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire