获得java中工程的路径

工程名:System.getProperty("user.dir")
拼接路径
String downFile = System.getProperty("user.dir")+"\\src\\Client\\"+ UUID.randomUUID()+".txt";

猜你喜欢

转载自www.cnblogs.com/fc520/p/12018287.html