ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext*.xml");
Bean bean=(IZoneJobTasksService) ctx.getBean("zoneJobTasksService");
Bean bean=(IZoneJobTasksService) ctx.getBean("zoneJobTasksService");
本文介绍了如何使用Spring框架通过ClassPathXmlApplicationContext加载配置文件applicationContext*.xml,并获取名为'zoneJobTasksService'的服务实例。
322

被折叠的 条评论
为什么被折叠?