1, springboot plurality of queues bound to the same switch
First, we need to introduce rely rabbitmq and configuration
Dependent <dependency> <the groupId> org.springframework.boot </ the groupId> <the artifactId> Starter-Spring-Boot-AMQP </ the artifactId> <Version> 2.2.5.RELEASE </ Version> </ dependency> Profiles: RabbitMQ : virtual-host: maomao # I own virtual host Port: 5672 host: 192.168.6.128 # I own virtual machine address username: the Rabbit password: 123456 # my own password rabbitmq
2. Create a configuration class is defined as follows: two queues, a switch needs to specify the name of the queue and the switch, specifies a particular queue bean @Qualifier time when binding with it
: Essays records, if not carefully to help you, ha ha ha ha, very honored ~~~~~~~~~~~~~~~
However, it is also possible for myself so dish it ha ha ha ha