获取该项目的classpath根路径
String classpath = Demo.class.getResource("/").getPath();
或
String classpath = this.getClass().getResource("/").getPath();
获取该项目的classpath根路径
String classpath = Demo.class.getResource("/").getPath();
或
String classpath = this.getClass().getResource("/").getPath();