ApplicationContext ac = new ClassPathXmlApplicationContext("app-all.xml");
IAppService ips = (IAppService) ac.getBean("appService"); System.out.println(ips.getAllList()); |
ApplicationContext ac = new ClassPathXmlApplicationContext("app-all.xml");
IAppService ips = (IAppService) ac.getBean("appService"); System.out.println(ips.getAllList()); |