|
@@ -1,5 +1,6 @@
|
|
|
package com.evps.comm.server.config;
|
|
|
|
|
|
+import com.evps.comm.server.EvpsCommServerApplication;
|
|
|
import com.evps.comm.server.repository.ApplicationRepository;
|
|
|
import com.evps.common.dto.EvpsCenter;
|
|
|
import com.its.common.utils.StringUtils;
|
|
@@ -10,6 +11,7 @@ import lombok.ToString;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.io.FileInputStream;
|
|
|
import java.util.List;
|
|
|
import java.util.Properties;
|
|
@@ -25,10 +27,10 @@ public class TraceConfig {
|
|
|
private final ApplicationRepository repo;
|
|
|
|
|
|
private Properties getProperties() {
|
|
|
- String workingDir = System.getProperty("user.dir");
|
|
|
+ String traceFileName = System.getProperty("user.dir") + File.separator + "conf" + File.separator + EvpsCommServerApplication.APPLICATION_NAME + "-trace.cfg";
|
|
|
Properties props = new Properties();
|
|
|
try {
|
|
|
- FileInputStream in = new FileInputStream(workingDir + "/conf/evps-comm-server-trace.cfg");
|
|
|
+ FileInputStream in = new FileInputStream(traceFileName);
|
|
|
props.load(in);
|
|
|
in.close();
|
|
|
}
|