试性不好,多记
public class GetPath {
public static void main(String[] args) {
GetPath test = new GetPath();
System.out.println(test.getPath());
}
public String getPath(){
return this.getClass().getResource("/").getPath();
}
}
public class GetPath {
public static void main(String[] args) {
GetPath test = new GetPath();
System.out.println(test.getPath());
}
public String getPath(){
return this.getClass().getResource("/").getPath();
}
}