1. 修复探测功能初次探测后,影响配置的问题。
2. 修复采集任务异常时,某些状态未处理的问题。
3. 修复数据插入TdEngine时转义的问题。
4. 修复开发环境读取探测配置文件时路径错误的问题
This commit is contained in:
WalkerLee
2022-02-09 16:07:14 +08:00
committed by random-chat
parent 7df74fc482
commit a394bd6cac
4 changed files with 26 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ public class AppServiceImpl implements AppService, CommandLineRunner {
if (appDefine == null) {
throw new IllegalArgumentException("The app " + app + " not support.");
}
return appDefine;
return appDefine.clone();
}
@Override
@@ -123,7 +123,7 @@ public class AppServiceImpl implements AppService, CommandLineRunner {
public void run(String... args) throws Exception {
// 读取app定义配置加载到内存中 define/app/*.yml
Yaml yaml = new Yaml();
String classpath = this.getClass().getResource(File.separator).getPath();
String classpath = this.getClass().getClassLoader().getResource("").getPath();
String defineAppPath = classpath + File.separator + "define" + File.separator + "app";
File directory = new File(defineAppPath);
if (!directory.exists() || directory.listFiles() == null) {