|
@@ -1,4 +1,4 @@
|
|
|
-package org.jeecg.modules.adweb.enquiry.mq;
|
|
|
+package org.jeecg.modules.mq;
|
|
|
|
|
|
import com.rabbitmq.client.Channel;
|
|
|
|
|
@@ -23,7 +23,8 @@ import org.springframework.messaging.handler.annotation.Header;
|
|
|
public class EnquiryReceiver extends BaseRabbiMqHandler<EnquiryDTO> {
|
|
|
|
|
|
@RabbitHandler
|
|
|
- @RabbitListener(queues = "enquiry")
|
|
|
+ // ackMode需要设置为MANUAL - BaseRabbiMqHandler.onMessage()有channel.basicAck()操作
|
|
|
+ @RabbitListener(queues = "enquiry", ackMode = "MANUAL")
|
|
|
public void onMessage(
|
|
|
EnquiryDTO enquiryDTO,
|
|
|
Channel channel,
|