package com.winsun.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fulonghuang
 * @date 2019/7/16
 */
@Configuration
public class RabbitConfig {

    /**
     * 定义队列名
     */
    private final static String TASKIMPORT = "taskImport";

    @Bean
    public Queue task() {
        return new Queue(TASKIMPORT);
    }


}
