>>> 生产者
17:35:22.151 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!0log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!1log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!2log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!3log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!4log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!5log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!6log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!7log.info] ,routingKey:[log.info] success
17:35:22.156 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!8log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!9log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!10log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!11log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!12log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!13log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!14log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!15log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!16log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!17log.info] ,routingKey:[log.info] success
17:35:22.157 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!18log.info] ,routingKey:[log.info] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!19log.info] ,routingKey:[log.info] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!0log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!1log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!2log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!3log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!4log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!5log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!6log.error] ,routingKey:[log.error] success
17:35:22.158 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!7log.error] ,routingKey:[log.error] success
17:35:22.159 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!8log.error] ,routingKey:[log.error] success
17:35:22.159 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.Producer - Send msg:[Hello RabbitMq!9log.error] ,routingKey:[log.error] success
Disconnected from the target VM, address: '127.0.0.1:58582', transport: 'socket'
> 消费者1-同时订阅了路由键为`log.info`和`log.error`的消息
17:35:15.737 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - Waiting for message...
17:35:22.153 [pool-1-thread-4] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!0log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:23.157 [pool-1-thread-5] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!1log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:24.162 [pool-1-thread-6] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!2log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:25.167 [pool-1-thread-7] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!3log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:26.173 [pool-1-thread-8] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!4log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:27.176 [pool-1-thread-9] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!5log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:28.179 [pool-1-thread-10] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!6log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:29.184 [pool-1-thread-11] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!7log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:30.190 [pool-1-thread-12] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!8log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:31.191 [pool-1-thread-13] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!9log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:32.195 [pool-1-thread-14] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!10log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:33.201 [pool-1-thread-15] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!11log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:34.203 [pool-1-thread-16] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!12log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:35.208 [pool-1-thread-17] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!13log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:36.211 [pool-1-thread-18] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!14log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:37.215 [pool-1-thread-19] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!15log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:38.222 [pool-1-thread-20] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!16log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:39.226 [pool-1-thread-21] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!17log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:40.229 [pool-1-thread-22] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!18log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:41.233 [pool-1-thread-23] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!19log.info],routingKey:[log.info],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:42.239 [pool-1-thread-24] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!0log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:43.243 [pool-1-thread-25] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!1log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:44.248 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!2log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:45.253 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!3log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:46.258 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!4log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:47.259 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!5log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:48.259 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!6log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:49.261 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!7log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:50.262 [pool-1-thread-26] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!8log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
17:35:51.262 [pool-1-thread-9] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerOne - 收到消息:[Hello RabbitMq!9log.error],routingKey:[log.error],tag:[amq.ctag-69-YK4fbdRWsRxpVYI280A]
> 消费者2-只订阅了路由键为`log.error`的消息
17:35:18.722 [main] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - Waiting for message...
17:35:22.161 [pool-1-thread-4] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!0log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:24.164 [pool-1-thread-5] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!1log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:26.167 [pool-1-thread-6] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!2log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:28.173 [pool-1-thread-7] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!3log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:30.179 [pool-1-thread-8] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!4log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:32.184 [pool-1-thread-9] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!5log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:34.189 [pool-1-thread-10] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!6log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:36.191 [pool-1-thread-11] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!7log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:38.192 [pool-1-thread-12] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!8log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]
17:35:40.195 [pool-1-thread-13] INFO com.futao.springmvcdemo.mq.rabbit.routing.ConsumerTwo - 收到消息:[Hello RabbitMq!9log.error],routingKey:[log.error],tag:[amq.ctag-IkbrVC8PYMJLwVuD8k6vSg]