BeanFactory factory = new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
ApplicationContext context = new FileSystemXmlApplicationContext("C:/config/applicationContext.xml");
ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
We’re here to make our tutorials better based on your thoughts and suggestions.