|
@@ -510,7 +510,7 @@ public class Constant {
|
|
|
String filePath = File.separator + "usr" + File.separator + "local" + File.separator + "etc" + File.separator + resourc;
|
|
|
InputStream stream = ResourceUtil.getStream(filePath);
|
|
|
if (stream != null) {
|
|
|
- log.warn("getStream success 0 " + filePath);
|
|
|
+ log.warn("getStream success 0" + "\t" + filePath);
|
|
|
return stream;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -520,7 +520,7 @@ public class Constant {
|
|
|
String filePath = System.getProperty("user.dir") + File.separator + "config" + File.separator + resourc;
|
|
|
InputStream stream = ResourceUtil.getStream(filePath);
|
|
|
if (stream != null) {
|
|
|
- log.warn("getStream success 1 " + filePath);
|
|
|
+ log.warn("getStream success 1" + "\t" + filePath);
|
|
|
return stream;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -530,7 +530,7 @@ public class Constant {
|
|
|
String filePath = System.getProperty("user.dir") + File.separator + resourc;
|
|
|
InputStream stream = ResourceUtil.getStream(filePath);
|
|
|
if (stream != null) {
|
|
|
- log.warn("getStream success 2 " + filePath);
|
|
|
+ log.warn("getStream success 2" + "\t" + filePath);
|
|
|
return stream;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -539,7 +539,7 @@ public class Constant {
|
|
|
// ClassPath目录
|
|
|
InputStream in = new org.springframework.core.io.ClassPathResource(File.separator + resourc).getInputStream();
|
|
|
if (in != null) {
|
|
|
- log.warn("getStream success 3 " + "ClassPathResource" + resourc);
|
|
|
+ log.warn("getStream success 3" + "\t" + "ClassPathResource" + "\t" + resourc);
|
|
|
return in;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
@@ -547,7 +547,7 @@ public class Constant {
|
|
|
try {
|
|
|
InputStream stream = Constant.class.getResourceAsStream(File.separator + resourc);
|
|
|
if (stream != null) {
|
|
|
- log.warn("getStream success 4 " + "getResourceAsStream" + resourc);
|
|
|
+ log.warn("getStream success 4" + "\t" + "getResourceAsStream" + "\t" + resourc);
|
|
|
return stream;
|
|
|
}
|
|
|
} catch (Exception e) {
|