spring的单元测试中的xml文件加载

ApplicationContext context = new ClassPathXmlApplicationContext("conf/spring/bean.xml");
Service service;
service=(Service)context.getBean("service");

猜你喜欢

转载自blog.51cto.com/10983206/2564264
今日推荐