23,121
社区成员
发帖
与我相关
我的任务
分享
// String path = LicenseTest.class.getResource("").getPath();
// String path = System.getProperty("java.class.path");// 获取所有的类路径
// String path = System.getProperty("user.dir")+"/resource/";
String path = new File("").getCanonicalPath() + "/resource/";
// String path=
// this.getClass().getClassLoader().getResource("").getPath();