Spring / Spring Interview questions II
How to load spring beans from the dependency jar in my project?
To load the annotated beans from the dependent jar, mention the fully qualified package name in @ComponentScan of your project.
@ComponentScan(basePackages = {"net.javapedia.from.jar"}) More Related questions...