21 lines
405 B
Java
21 lines
405 B
Java
package com.didispace.rabbit;
|
|
|
|
import org.springframework.amqp.core.Queue;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
/**
|
|
* @author 翟永超
|
|
* @create 2016/9/25.
|
|
* @blog http://blog.didispace.com
|
|
*/
|
|
@Configuration
|
|
public class RabbitConfig {
|
|
|
|
@Bean
|
|
public Queue helloQueue() {
|
|
return new Queue("hello");
|
|
}
|
|
|
|
}
|