[AGENT][INIT] 修复Agent启动的Bug

This commit is contained in:
zeaslity
2023-03-02 10:17:19 +08:00
parent 32386a1376
commit 50742e3a1a
3 changed files with 12 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ import io.wdd.func.xray.beans.node.ProxyNode;
import io.wdd.func.xray.beans.node.ProxyNodeType;
import io.wdd.func.xray.beans.node.XrayConfigInfo;
import io.wdd.server.beans.vo.ServerInfoVO;
import io.wdd.server.coreService.CoreAppService;
import io.wdd.server.coreService.CoreServerService;
import io.wdd.server.service.AppInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@@ -20,6 +20,7 @@ import static io.wdd.rpc.init.AcceptAgentInitInfo.ALL_SERVER_CITY_INDEX;
/**
* 为Xray Config信息 操作数据库而创建
* todo 初期只需要记录构建过的路径MySQL, 后期如此复杂的网路可以考虑上图数据库Neo4j
*/
@Service
@Slf4j
@@ -29,7 +30,7 @@ public class XrayDBOperator {
CoreServerService coreServerService;
@Resource
AppInfoService appInfoService;
CoreAppService coreAppService;
@PostConstruct
public void cache() {