SpringBoot整合RabbitMQ及其操作
SpringBoot 整合RabbitMQ https://blog.csdn.net/hellozpc/article/details/81436980 导入依赖 < dependency > < groupId > org . springframework . boot < / groupId > < artifactId > spring - boot - starter - amqp < / artifactId > < / dependency > 1. direct模式 直连模式,这里采用到了默认的Direct类型的Exchange,不用手动创建Exchange. 配置类 package com . hao . springbootrabbitmq . normalDirect . config ; import org . springframework . amqp . core . Queue ; import org . springframework . context . annotation . Bean ; import org . springframework . context . annotation . Configuration ; @Configuration public class NormalDirectConfig { @Bean