Commit 0bc82ab4 authored by yanzg's avatar yanzg

修改MQ请求尸体,防止出错

parent 15328cf4
...@@ -37,10 +37,6 @@ public class QueueServiceImpl implements QueueService { ...@@ -37,10 +37,6 @@ public class QueueServiceImpl implements QueueService {
*/ */
private void initBean(QueueVo vo) { private void initBean(QueueVo vo) {
vo.check(); vo.check();
ThreadHelper.runThread(new Runnable() {
@Override
public void run() {
// 创建死信队列 // 创建死信队列
if (!StringHelper.isEmpty(vo.getDedQueueName())) { if (!StringHelper.isEmpty(vo.getDedQueueName())) {
beanDao.createQueue(vo.getDedQueueName()); beanDao.createQueue(vo.getDedQueueName());
...@@ -62,7 +58,5 @@ public class QueueServiceImpl implements QueueService { ...@@ -62,7 +58,5 @@ public class QueueServiceImpl implements QueueService {
// 创建绑定队列 // 创建绑定队列
beanDao.createBinding(vo.getExchangeName(), vo.getQueueName(), vo.getRouteKey()); beanDao.createBinding(vo.getExchangeName(), vo.getQueueName(), vo.getRouteKey());
} }
});
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment