![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
遥望山顶的小孩
这个作者很懒,什么都没留下…
展开
-
在RabbitMQ的Spring接收端实现多个监听器
有的应用场景中需要实现多个监听器,每个监听器监听不同的消息队列,实现不同的业务逻辑。下面分别介绍XML配置方式和Java配置方式。一、XML配置方式<?xml version="1.0" encoding="UTF-8"?><beans:beans xmlns="http://www.springframework.org/schema/rabbit" xmlns:beans="http://www.springframework.org/schema/be原创 2020-07-07 17:27:07 · 1904 阅读 · 0 评论 -
RabbitMQ在Spring中的应用示例(二)
完成一个基于消息驱动的消费者生产者的配置文件和java程序可参考博客:RabbitMQ在Spring中的示例(一)1、消费者的配置文件<?xml version="1.0" encoding="UTF-8"?><beans:beans xmlns="http://www.springframework.org/schema/rabbit" xmlns:beans="http://www.springframework.org/schema/beans"原创 2020-06-28 23:31:25 · 150 阅读 · 0 评论 -
RabbitMQ在Spring中的应用示例(一)
参考《Spring实战》(第四版)的17.31、生产者的配置文件1.1 amqp-shared.xml<?xml version="1.0" encoding="UTF-8"?><beans:beans xmlns="http://www.springframework.org/schema/rabbit" xmlns:beans="http://www.springframework.org/schema/beans" xmln原创 2020-06-28 17:51:33 · 177 阅读 · 0 评论