System.out.println(System.getProperty("user.dir")); 转载于:https://www.cnblogs.com/dulute/p/10599405.html