moss-sdk 文件改成 /app
This commit is contained in:
@@ -46,7 +46,7 @@ public class PropertiesUtil {
|
|||||||
/**
|
/**
|
||||||
* properties文件所在的地址
|
* properties文件所在的地址
|
||||||
*/
|
*/
|
||||||
private static String propertiesParentPath = null;
|
private static final String propertiesParentPath = "/app";
|
||||||
/**
|
/**
|
||||||
* 根据文件名称-key,返回相应key的值
|
* 根据文件名称-key,返回相应key的值
|
||||||
* 文件名默认为config.properties,文件编码默认为UTF-8
|
* 文件名默认为config.properties,文件编码默认为UTF-8
|
||||||
@@ -136,9 +136,6 @@ public class PropertiesUtil {
|
|||||||
* 根据文件名,key,编码返回value值
|
* 根据文件名,key,编码返回value值
|
||||||
*/
|
*/
|
||||||
public static String getStringByKey(String fileName, String key, String encode) {
|
public static String getStringByKey(String fileName, String key, String encode) {
|
||||||
String propertiesPath = PropertiesUtil.class.getClassLoader()
|
|
||||||
.getResource(fileName).getPath().replace(fileName, "");
|
|
||||||
propertiesParentPath = propertiesPath;
|
|
||||||
fileEncode = encode;
|
fileEncode = encode;
|
||||||
return PropertiesUtilHolder.instance.allParam.get(fileName).get(key);
|
return PropertiesUtilHolder.instance.allParam.get(fileName).get(key);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user