src/main/java/com/fzzy/gateway/hx2023/service/ApiInitService.java
@@ -7,6 +7,7 @@ import com.fzzy.gateway.service.GatewayConfService; import com.fzzy.gateway.service.GatewayDeviceService; import org.springframework.stereotype.Component; import javax.annotation.Resource; @@ -21,6 +22,8 @@ @Resource private GatewayConfService confService; @Resource private GatewayDeviceService deviceService; @Resource private GatewayRemoteManager gatewayRemoteManager; @@ -44,7 +47,9 @@ } } public void updateDeviceCache() { deviceService.flushCache(); } }