String path = Thread.currentThread().getContextClassLoader().getResource("") + "/文件";
获取结果为: file:/*/文件;
String absolutePath = path.replaceAll("file:/", "").replaceAll("%20", " ").trim();
获取结果为: /*/文件;
String path = Thread.currentThread().getContextClassLoader().getResource("") + "/文件";
获取结果为: file:/*/文件;
String absolutePath = path.replaceAll("file:/", "").replaceAll("%20", " ").trim();
获取结果为: /*/文件;