增加拉取继电器时,同时查询Mqtt
This commit is contained in:
parent
7af741782d
commit
56bd4dd4bd
|
|
@ -11,6 +11,7 @@ import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
|
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -26,6 +27,7 @@ public class MqttConfig {
|
|||
private final MqttProperties mqttProperties;
|
||||
private final MqttCallbackHandler mqttCallbackHandler; // 这里注入
|
||||
private MqttClient mqttClient;
|
||||
@Lazy
|
||||
private final ISurvIotVirtualDeviceService deviceService;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue