rabbitMQ通过@RabbitListener和配置文件XML创建exchange及队列绑定关系

1.@RabbitListener

2.配置文件

<rabbit:fanout-exchange name="fanoutExchange" xmlns="http://www.springframework.org/schema/rabbit" durable="true" declared-by="admin">
	<rabbit:bindings>
		<rabbit:binding queue="${rabbitMq.queuename}"></rabbit:binding>
	</rabbit:bindings>
</rabbit:fanout-exchange>

个人项目代码:https://zhangww.coding.net/p/rabbitMQTest

https://blog.csdn.net/weixin_38070406/article/details/82903677
https://blog.csdn.net/xinbaobaoer/article/details/54907793

https://blog.csdn.net/hellozpc/article/details/81436980

http://bbs.dongnaoedu.com/?thread-184.htm
https://github.com/rabbitmq/rabbitmq-tutorials

posted @ 2019-05-08 20:21  guardWei  阅读(4027)  评论(0编辑  收藏  举报