加载配置打印日志
This commit is contained in:
@@ -20,6 +20,7 @@ public class PropertiesUtil {
|
||||
* 私有化构造函数,防止类被实例化
|
||||
*/
|
||||
private PropertiesUtil(String filePath, String encode) {
|
||||
System.out.println("PropertiesUtil init filePath: " + filePath);
|
||||
File file = new File(filePath);
|
||||
File[] array = file.listFiles();
|
||||
for(File childfile : array) {
|
||||
@@ -178,7 +179,7 @@ public class PropertiesUtil {
|
||||
paramMap.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
|
||||
}
|
||||
allParam.put(fileName, paramMap);
|
||||
System.out.println("loadConfig " + fileName + " " + allParam);
|
||||
System.out.println("loadConfig " + fileName + " keys: " + allParam.keySet());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user