Code for Dependency Injection Article.

This commit is contained in:
iaforek 2017-03-13 19:27:14 +00:00
parent d32d3edcc9
commit 9e00c1cdff
2 changed files with 52 additions and 52 deletions

View File

@ -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);
}