package com.testor.module.mq.config;//package com.testor.module.mq.config;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class TopicConfig {
//
//	//绑定交换机
//	@Bean
//	TopicExchange topicExchange(){
//		return new TopicExchange("TianQiExchange",true,false);
//	}
//	//绑定队列
//	@Bean
//	Queue topicQueue(){
//		return  new Queue("TianQiTopic",true,false,false);
//	}
//	//绑定路由件
//	@Bean
//	Binding bingTopic(){
//		return BindingBuilder.bind(topicQueue()).to(topicExchange()).with("zhongliang.tianqi");
//	}
//
//}
