获得根路径

1. 获取类加载的根路径
File f = new File(this.getClass().getResource("/").getPath());


你可能感兴趣的:(获得根路径)