xiongzhu 4 years ago
parent
commit
ac0119b133
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/izouma/nineth/listener/OrderNotifyListener.java

+ 1 - 1
src/main/java/com/izouma/nineth/listener/OrderNotifyListener.java

@@ -20,7 +20,7 @@ import org.springframework.stereotype.Service;
         consumerGroup = "${general.order-notify-group}",
         topic = "${general.order-notify-topic}",
         consumeMode = ConsumeMode.ORDERLY)
-@ConditionalOnProperty(value = "general.notify-server", havingValue = "true")
+@ConditionalOnProperty(value = "general.notify-server", havingValue = "true", matchIfMissing = true)
 public class OrderNotifyListener implements RocketMQListener<OrderNotifyEvent> {
     private OrderService     orderService;
     private MintOrderService mintOrderService;