|
|
@@ -2,10 +2,13 @@ package com.ssjl.zhaobiao.guizhou.utils; |
|
|
|
|
|
|
|
import com.ssjl.zhaobiao.guizhou.netty.NettyClient; |
|
|
|
import com.ssjl.zhaobiao.guizhou.netty.NettyServer; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.boot.CommandLineRunner; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@Component |
|
|
|
public class Runner implements CommandLineRunner { |
|
|
|
|
|
|
@@ -14,6 +17,27 @@ public class Runner implements CommandLineRunner { |
|
|
|
@Autowired |
|
|
|
NettyClient nettyClient; |
|
|
|
|
|
|
|
@Value("${guizhou.device.zhizhong}") |
|
|
|
String zhizhongDevices; |
|
|
|
@Value("${guizhou.device.zhanneng}") |
|
|
|
String zhannengDevices; |
|
|
|
@Value("${guizhou.device.tianbo}") |
|
|
|
String tianboDevice; |
|
|
|
@Value("${guizhou.http.zhizhong}") |
|
|
|
String zhizhongUrl; |
|
|
|
@Value("${guizhou.http.zhanneng}") |
|
|
|
String zhannengUrl; |
|
|
|
@Value("${guizhou.factory}") |
|
|
|
String factory; |
|
|
|
@Value("${guizhou.device.testList}") |
|
|
|
String testList; |
|
|
|
|
|
|
|
@Value("${guizhou.protocol}") |
|
|
|
private String gzProtocol; |
|
|
|
@Value("${guizhou.device.model}") |
|
|
|
private String gzDeviceModel; |
|
|
|
@Value("${guizhou.device.version}") |
|
|
|
private String deviceVersion; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run(String... args) throws Exception { |
|
|
@@ -22,5 +46,17 @@ public class Runner implements CommandLineRunner { |
|
|
|
// mqManager.init(); |
|
|
|
// nettyServer.start(); |
|
|
|
// nettyClient.start(); |
|
|
|
|
|
|
|
log.info("zhizhongDevices=" + zhizhongDevices); |
|
|
|
log.info("zhannengDevices=" + zhannengDevices); |
|
|
|
log.info("tianboDevice=" + tianboDevice); |
|
|
|
log.info("zhizhongUrl=" + zhizhongUrl); |
|
|
|
log.info("zhannengUrl=" + zhannengUrl); |
|
|
|
log.info("factory=" + factory); |
|
|
|
log.info("testList=" + testList); |
|
|
|
|
|
|
|
log.info("gzProtocol=" + gzProtocol); |
|
|
|
log.info("gzDeviceModel=" + gzDeviceModel); |
|
|
|
log.info("deviceVersion=" + deviceVersion); |
|
|
|
} |
|
|
|
} |