|
|
|
@ -37,7 +37,7 @@ public class AmqpListener { |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
|
|
|
|
// @RabbitListener(queues = "shengdilandevicedataall") |
|
|
|
@RabbitListener(queues = "shengdilandevicedataall") |
|
|
|
public void deviceDataMqListener(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception { |
|
|
|
if (StringUtils.isEmpty(message)) { |
|
|
|
channel.basicAck(deliveryTag, false); |
|
|
|
|