private String getPath() throws IOException{
String root = RequestContext.class.getResource("/").getFile();
return new File(root).getParentFile().getParentFile().getCanonicalPath();
}
Java定时任务获得项目路径
最新推荐文章于 2021-04-20 18:32:43 发布