标签:location producer sage xsd rabl http password pex odi
1.引入相关jar包
//RabbitMQ compile group: ‘org.springframework.amqp‘, name: ‘spring-rabbit‘, version: ‘1.6.6.RELEASE‘ |
生产者配置
2.实现一个消息处理器,继承自org.springframework.amqp.core.MessageListener
public class AmqpMsgListener implements MessageListener { |
3.rabbit-producer.xml
<?xml version="1.0" encoding="UTF-8"?> |
消费者配置
4.rabbit-customer.xml
<?xml version="1.0" encoding="UTF-8"?> <!--按项目需求配置 --> |
5.创建测试类
public class MqTest extends BaseJunit { |
标签:location producer sage xsd rabl http password pex odi
原文地址:http://www.cnblogs.com/hz04022016/p/6518292.html