package org.apereo.cas.web.landtool.rabbitmq.config; import org.springframework.amqp.core.TopicExchange; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * @author wangqin * 2019-07-05 */ @Configuration public class RabbitConfig { @Autowired private RabbitMqProperties rabbitConfig; /** * 声明交互器 * @return */ @Bean TopicExchange topicExchange() { return new TopicExchange(rabbitConfig.getRmqExchangeName(),false,false); } }