ClassPathXmlApplicationContext cpa = new ClassPathXmlApplicationContext("spring/applicationContext-rabbitmq.xml");
//MQExample mq = new MQExample();
MQExample mq = cpa.getBean("mqExample",MQExample.class);
spring 测试对外配置文件
最新推荐文章于 2024-08-30 18:40:43 发布