ApplicationContext ac = new ClassPathXmlApplicationContext("app-all.xml");
IAppService ips = (IAppService) ac.getBean("appService"); System.out.println(ips.getAllList()); |
java的main方法中调用spring的service
最新推荐文章于 2024-07-23 14:39:08 发布