Spring Boot中使用RabbitMQ
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user