fixe: 解决Admin模块初始化MQ队列问题

This commit is contained in:
wangiegie@gmail.com 2017-12-06 16:51:24 +08:00
parent 1c5b53306f
commit 9fccadd131
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package com.github.pig.gateway.config; package com.github.pig.admin.common.config;
import com.github.pig.common.constant.CommonConstant; import com.github.pig.common.constant.CommonConstant;
import org.springframework.amqp.core.Queue; import org.springframework.amqp.core.Queue;
@ -12,8 +12,12 @@ import org.springframework.context.annotation.Configuration;
*/ */
@Configuration @Configuration
public class RabbitConfig { public class RabbitConfig {
/**
* 初始化 log队列
* @return
*/
@Bean @Bean
public Queue helloQueue() { public Queue initLogQueue() {
return new Queue(CommonConstant.LOG_QUEUE); return new Queue(CommonConstant.LOG_QUEUE);
} }
} }