From c62275188c4b8fd34fdfd3555fe634571f8044a4 Mon Sep 17 00:00:00 2001 From: vince <757871790@qq.com> Date: 星期三, 08 十一月 2023 17:47:44 +0800 Subject: [PATCH] 手动测试 --- src/main/java/com/fzzy/gateway/GatewayRunner.java | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/GatewayRunner.java b/src/main/java/com/fzzy/gateway/GatewayRunner.java index b841244..9dbdcd8 100644 --- a/src/main/java/com/fzzy/gateway/GatewayRunner.java +++ b/src/main/java/com/fzzy/gateway/GatewayRunner.java @@ -1,12 +1,14 @@ package com.fzzy.gateway; -import com.fzzy.api.service.ApiCommonService; -import com.fzzy.api.service.ApiTriggerService; -import com.fzzy.api.service.GbCheckItemService; + +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; + +import javax.annotation.Resource; /** * 閰嶇疆闅忕郴缁熷惎鍔ㄩ粯璁ら厤缃� @@ -16,15 +18,15 @@ @Order(value = 2) public class GatewayRunner implements CommandLineRunner { - + @Resource + private ApiInitService apiInitService; + @Autowired + private MqttPublishService mqttPublishService; @Override public void run(String... args) throws Exception { - log.info("缃戝叧鎺ュ彛闅忕郴缁熷惎鍔�------------"); - - - //鍥涘窛缃戝叧鎺ュ彛锛屽惎鍔ㄩ粯璁よ幏鍙栭壌鏉冧俊鎭紝闀挎湡鏈夋晥 - - + mqttPublishService.init(); + //鎵ц鍒濆鍖栨柟妗� + apiInitService.init(); } } -- Gitblit v1.9.3