UPLOAD_DIR = System.getProperty("user.dir") + "/upload/";
时间: 2023-10-17 14:35:52 浏览: 97
根据引用中的代码,UPLOAD_DIR = System.getProperty("user.dir") + "/upload/"; 这行代码的功能是获取当前项目的存放路径,并在路径后面加上"/upload/"作为相对路径。所以UPLOAD_DIR的值应该是当前项目存放路径下的upload文件夹的路径。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [servlet3.0新特性源代码](https://download.csdn.net/download/l_ji_l/4322940)[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%"]
- *2* *3* [Java 获取相对路径问题 System.getProperty("user.dir");](https://blog.csdn.net/weixin_42525261/article/details/114086123)[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 ]
阅读全文