package com.winsun.rabbitmq;

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

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

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

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


}
