获取路径

来源:互联网 发布:影响力 知乎 编辑:程序博客网 时间:2024/05/23 11:59

1.

OGGER.info(System.getProperty("user.dir"));

 

2.

File file = new File("");

LOGGER.info(file.getAbsolutePath());