diff --git a/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/controller/DeviceDebugController.java b/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/controller/DeviceDebugController.java index 712de807..737a9123 100644 --- a/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/controller/DeviceDebugController.java +++ b/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/controller/DeviceDebugController.java @@ -5,6 +5,7 @@ import com.iteaj.framework.result.Result; import com.iteaj.iboot.msn.iot.service.IDeviceService; import com.iteaj.iot.client.mqtt.impl.DefaultMqttComponent; import io.netty.handler.codec.mqtt.MqttQoS; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -19,7 +20,7 @@ public class DeviceDebugController extends BaseController { private final IDeviceService deviceService; private final DefaultMqttComponent component; - public DeviceDebugController(DefaultMqttComponent component, IDeviceService deviceService) { + public DeviceDebugController(@Autowired(required = false) DefaultMqttComponent component, IDeviceService deviceService) { this.component = component; this.deviceService = deviceService; } diff --git a/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/mqtt/MqttDebugSubscribeListener.java b/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/mqtt/MqttDebugSubscribeListener.java index 30b25cd6..8099514f 100644 --- a/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/mqtt/MqttDebugSubscribeListener.java +++ b/bootstrap/src/main/java/com/iteaj/iboot/msn/iot/mqtt/MqttDebugSubscribeListener.java @@ -6,7 +6,7 @@ import io.netty.handler.codec.mqtt.MqttQoS; import io.netty.handler.codec.mqtt.MqttTopicSubscription; import org.springframework.stereotype.Component; -@Component +//@Component public class MqttDebugSubscribeListener implements MqttSubscribeListener { private MqttTopicSubscription subscription = new MqttTopicSubscription("iot/debug/#", MqttQoS.AT_MOST_ONCE);