瀏覽代碼

排菜rabbit

he.dujuan 3 年之前
父節點
當前提交
c5253cdd5e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      eladmin-system/src/main/java/me/zhengjie/config/rabbitmq/test/ListenerTemplate.java

+ 1 - 1
eladmin-system/src/main/java/me/zhengjie/config/rabbitmq/test/ListenerTemplate.java

@@ -42,7 +42,7 @@ public class ListenerTemplate {
 //    @Autowired
 //    DmOrderPaymentService dmOrderPaymentService;
 
-//    @RabbitListener(queues = CuisineProduce.NAME, containerFactory = CuisineProduce.LISTENER)
+    @RabbitListener(queues = CuisineProduce.NAME, containerFactory = CuisineProduce.LISTENER)
     public void dealDeclareMessage(Message message) throws UnsupportedEncodingException {
         String str = new String(message.getBody(),"utf-8");
         System.out.println("receivePc:"+str);