![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
file
leading_the_way
这个作者很懒,什么都没留下…
展开
-
获取指定目录下的文件
String projectPath = Constants.class.getResource("/").getFile(); int findindex = projectPath.indexOf("WEB-INF"); projectPath = projectPath.substring(1, findindex + 8)+"workflow/"+workflowpath; Fi原创 2014-10-14 20:58:24 · 210 阅读 · 0 评论 -
java获取工程目录下文件
static{ String root = Constants.class.getResource("/").getFile(); try { root = new File(root).getCanonicalPath(); root += File.separator; } catch (IOException e) { throw new RuntimeException(e);转载 2014-10-14 20:54:08 · 225 阅读 · 0 评论