13693261870
2022-09-20 a666b5f9741ef9b21f547d3b2141752a0383c70c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
    }
}