src/main/java/com/fzzy/gateway/GatewayRunner.java
@@ -20,11 +20,12 @@ @Resource private ApiInitService apiInitService; @Autowired @Resource private MqttPublishService mqttPublishService; @Autowired @Resource private GatewayTimerScheduled scheduled; @Override public void run(String... args) throws Exception { @@ -36,6 +37,9 @@ //获取气象信息 scheduled.doWeatherExe(); //更新设备缓存 apiInitService.updateDeviceCache(); } }