Java获取当前路径(Linux+Windows)
获取当前路径(兼容Linux、Windows):
String curPath = System.getProperty("user.dir");标签:Java,Windows,路径,curPath,当前,Linux From: https://www.cnblogs.com/lizm166/p/17386937.html
log.info("===========当前路径===========curPath:{}", curPath);
输出结果:===========当前路径===========curPath:/home/lizhm