我有一条绝对可行的道路
String path = "C:/projects/ISI7/Releases/Release_15.2/EXT_JS/src/main/webapp/WEB-
INF/classes/commonComponents/ApplicationResources_"+ language + ".properties";我想得到相对路径。我认为相对路径是:
String path = "classes/commonComponents/ApplicationResources_"+ language + ".properties";但我得到了fileNotFound异常
我试过的是:
String path = "commonComponents/ApplicationResources_"+ language + ".properties"; 结果也不管用。使用JDK 1.6和Windows操作系统。
发布于 2015-07-16 09:22:55
要确定您的工作进度,请尝试如下:
File f = new File(".");
System.out.println(f.getAbsolutePath());https://stackoverflow.com/questions/31450131
复制相似问题