Spring / Spring Interview questions II
Why is ApplicationContext.getBean considered bad in Spring?
Calling ApplicationContext.getBean() is not Inversion of Control and it basically defeats Spring's purpose as a dependency injection container. Inject dependencies rather than setting it by calling getBean method.
More Related questions...