Skip to content
openlab-foundationPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

piaoyou

RabbitMQ 配置说明:

在配置文件(application.yml)中添加如下配置:

rabbit: direct: queues: direct.queue1|direct.queue2 #队列名称 fanout: exchanges: fanoutExchange1|fanoutExchange2 #交换机名称 queues: fanout.queue1,fanout.queue2,fanout.queue3|fanout.queue4 #队列名称 topic:
exchanges: topicExchange1|topicExchange2 #交换机名称 queues: topic.queue1,topic.queue2|topic.queue3,topic.queue4 #队列名称 routingKeys: topic.queue1,topic.$|topic.queue3,topic.% #路由名称($匹配一个单词, %匹配零个或多个单词)

由于在SpringBoot的配置文件(application.yml)中 '#'是注释,所以做一个符号替换,避免读取异常 $ 表示 * % 表示 #

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages