Hi All,
I am new to Spring. I have query regarding the ways to load the config file in spring.
What is the difference between
ApplicationContext context = new ClassPathXmlApplicationContext("AppConfig.xml");
And
Resource res = new ClassPathResource("spconfig.xml");
BeanFactory factory = new XmlBeanFactory(res);
Thanks