// System.out.println(this.getClass().getResource("").getPath()); // 當前類路徑
System.out.println(this.getClass().getResource("/").getPath()); // 當前類根路徑
String path = System.getProperty("user.dir"); // 當前項目根路徑
// String path = System.getProperty("user.dir") + "\\src"; // 當前項目src
12-11
9136
01-17
1776
06-06