ROOT_DIR = System.getProperty("user.dir");
时间: 2023-10-17 16:35:29 浏览: 259
ROOT_DIR = System.getProperty("user.dir")这段代码是用来获取当前工作目录的路径。 System.getProperty("user.dir")是Java系统属性的一种,用于获取当前工作目录,也可以称为用户目录。 这段代码可以在不同的操作系统上获取到正确的工作目录路径,不论是Windows还是其他系统。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Java获取当前项目下的文件或目录物理地址System.getProperty(“user.dir“)](https://blog.csdn.net/m0_64261982/article/details/130494591)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [jsp探针 ver0.1](https://download.csdn.net/download/qq492932866/1933076)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文