|
@@ -1,6 +1,7 @@
|
|
package com.sig.todp.server.config;
|
|
package com.sig.todp.server.config;
|
|
|
|
|
|
import com.its.common.utils.StringUtils;
|
|
import com.its.common.utils.StringUtils;
|
|
|
|
+import com.sig.todp.server.SigTodpServerApplication;
|
|
import com.sig.todp.server.dto.RegionCenter;
|
|
import com.sig.todp.server.dto.RegionCenter;
|
|
import com.sig.todp.server.dto.TTodInt;
|
|
import com.sig.todp.server.dto.TTodInt;
|
|
import com.sig.todp.server.repository.ApplicationRepository;
|
|
import com.sig.todp.server.repository.ApplicationRepository;
|
|
@@ -11,6 +12,7 @@ import lombok.ToString;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
+import java.io.File;
|
|
import java.io.FileInputStream;
|
|
import java.io.FileInputStream;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
@@ -28,9 +30,9 @@ public class TraceConfig {
|
|
private final ApplicationRepository repo;
|
|
private final ApplicationRepository repo;
|
|
|
|
|
|
private Properties getProperties() {
|
|
private Properties getProperties() {
|
|
- String workingDir = System.getProperty("user.dir");
|
|
|
|
|
|
+ String traceFileName = System.getProperty("user.dir") + File.separator + "conf" + File.separator + SigTodpServerApplication.APPLICATION_NAME + "-trace.cfg";
|
|
try {
|
|
try {
|
|
- FileInputStream in = new FileInputStream(workingDir + "/conf/sig-todp-server-trace.cfg");
|
|
|
|
|
|
+ FileInputStream in = new FileInputStream(traceFileName);
|
|
Properties props = new Properties();
|
|
Properties props = new Properties();
|
|
props.load(in);
|
|
props.load(in);
|
|
in.close();
|
|
in.close();
|