All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zengtengpeng.configuration.MQConfiguration Maven / Gradle / Ivy

package com.zengtengpeng.configuration;

import com.zengtengpeng.mq.RedissonMQListener;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MQ配置
 */
@Configuration
public class MQConfiguration {

    @Bean
    @ConditionalOnMissingBean(RedissonMQListener.class)
    public RedissonMQListener RedissonMQListener() {
        return new RedissonMQListener();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy