Spring Boot中使用RabbitMQ

This commit is contained in:
翟永超
2016-09-25 17:02:39 +08:00
parent 2e13917cb2
commit e5656ab36f
7 changed files with 153 additions and 0 deletions
@@ -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");
}
}