Code for Dependency Injection Article.
This commit is contained in:
parent
d32d3edcc9
commit
9e00c1cdff
@ -24,7 +24,7 @@ public class SpringRunner {
|
||||
}
|
||||
|
||||
private static Car getCarFromXml() {
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext("baeldung.xml");
|
||||
ApplicationContext context = new ClassPathXmlApplicationContext("constructordi.xml");
|
||||
|
||||
return context.getBean(Car.class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user