vince
2023-12-26 9a139b15be65dcd83ae187bb384627097c6a811a
src/main/java/com/fzzy/gateway/GatewayRunner.java
@@ -3,7 +3,6 @@
import com.fzzy.gateway.hx2023.service.ApiInitService;
import com.fzzy.mqtt.MqttPublishService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
@@ -29,8 +28,12 @@
    @Override
    public void run(String... args) throws Exception {
        log.info("---------MQTT初始化--------------");
        mqttPublishService.init();
        //执行初始化方案
        //网关初始化
        log.info("---------网关设备初始化--------------");
        apiInitService.init();
@@ -38,8 +41,12 @@
        scheduled.doWeatherExe();
        //更新设备缓存
        log.info("---------设备缓存初始化--------------");
        apiInitService.updateDeviceCache();
        //初始化车牌识别
        log.info("---------车牌识别初始化--------------");
        apiInitService.initAllLpr();
    }
}