| package com.xcong.excoin.rabbit.consumer; | 
|   | 
| import com.xcong.excoin.configurations.RabbitMqConfig; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.amqp.rabbit.annotation.RabbitListener; | 
| import org.springframework.stereotype.Component; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-05-25 | 
|  **/ | 
| @Slf4j | 
| @Component | 
| public class TestConsumer { | 
|   | 
|   | 
|     @RabbitListener(queues = RabbitMqConfig.QUEUE_TEST) | 
|     public void doSomething(String content) { | 
|         log.info("#---->{}#", content); | 
|     } | 
| } |