fixed:
1. 修复探测功能初次探测后,影响配置的问题。 2. 修复采集任务异常时,某些状态未处理的问题。 3. 修复数据插入TdEngine时转义的问题。 4. 修复开发环境读取探测配置文件时路径错误的问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user