Теперь мой файл applicationContext.xml выглядит следующим образом.
Код: Выделить всё
и теперь, когда я делаю следующее..
Код: Выделить всё
ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
MyClass m=ctx.getBean(MyClass.class);
Подробнее здесь: https://stackoverflow.com/questions/285 ... on-context