enable dsq

master
wenfei 1 month ago
parent a735c56259
commit 765cc76107

@ -183,7 +183,8 @@
</repository>
</repositories>
<build>
<finalName>${project.artifactId}</finalName>
<!-- <finalName>${project.artifactId}</finalName>-->
<finalName>admin-client-temperature-esp-3-9-mysql-appserver</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

@ -19,8 +19,8 @@ import javax.annotation.Resource;
import java.util.Map;
@Slf4j
//@EnableScheduling
//@EnableAsync
@EnableScheduling
@EnableAsync
@SpringBootApplication
public class AdminClientTemperatureApplication implements CommandLineRunner, ApplicationContextAware {
@ -62,7 +62,7 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
log.info("------------------------");
log.info("TemperatureController is not empty");
MqttRSAClient client = new MqttRSAClient();
//client.start(temperatureService);
client.start(temperatureService);
}else {
log.info("temperatureService is empty");
}
@ -80,7 +80,7 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
log.info("------------------------");
log.info("temperatureEspService is not empty");
MqttDianDengTechClient client = new MqttDianDengTechClient();
//client.start(temperatureEspService);
client.start(temperatureEspService);
}else {
log.info("temperatureEspService is empty");
}

Loading…
Cancel
Save