package com.testor.module.mq.consumer;//package com.testor.module.mq.consumer;
//
//import com.rabbitmq.client.Channel;
//import groovy.util.logging.Slf4j;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.rabbit.annotation.*;
//import org.springframework.stereotype.Component;
//
//import java.io.IOException;
//import java.util.Map;
//
//@Component
//@Slf4j
//public class TopicMsgConsumer {
//
//	@RabbitListener(bindings = {
//		@QueueBinding(value = @Queue(value = "TianQiTopic",durable = "true"),
//		exchange =@Exchange(value = "TianQiExchange",durable = "true",type = "topic"),key = "zhongliang.tianqi")
//	})
//	@RabbitHandler
//	public void process(Map map, Channel channel, Message message) throws IOException {
//		System.out.println("收到的topic队列的消息是："+map.toString());
//		channel.basicAck(message.getMessageProperties().getDeliveryTag(),false);
//	}
//}
