dimanche 5 avril 2015

Spring Bean Creation Exception with no app context

I upgrade spring from 3.2 to 4.1.6 and everything is good but there is one problem that is spring throws bean creation exception when running the application.


In the previous version it there was an exception but it's not thrown


Here is the code:



this.testClass = AppContext.getAppContext().getBean("testClass", TestClass.class);


The importing sequence in the xml configuration file must get the app context then creating the other beans, but it creates the beans then get the app context so that it throws an exception before load the app context.


Any help ?


Aucun commentaire:

Enregistrer un commentaire