加载配置打印日志

This commit is contained in:
tg.shi
2025-09-02 13:55:32 +08:00
parent 75f08bcf90
commit 1041999c4d
2 changed files with 5 additions and 10 deletions

View File

@@ -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 {