java utils

1.获取resouces中文件的绝对路径

String filePath = XXX.class.getClassLoader().getResource("/configs/interface/..").getPath();

File file = new File(filePath);
原文地址:https://www.cnblogs.com/Gyoung/p/5412107.html