String projectPath = System.getProperty ("user.dir").toString() 转载于:https://www.cnblogs.com/MasterMonkInTemple/p/5190224.html