spring 测试对外配置文件

   ClassPathXmlApplicationContext cpa = new ClassPathXmlApplicationContext("spring/applicationContext-rabbitmq.xml");
        //MQExample mq = new MQExample();
        MQExample mq = cpa.getBean("mqExample",MQExample.class);

猜你喜欢

转载自terry0501.iteye.com/blog/2329299