Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文件的服务器路径,我想在服务器端代码中删除该文件,但fileNotFound抛出异常,所以我认为我需要文件服务器路径的物理对应路径。
fileNotFound
如何通过 http 路径获取文件的物理路径?在 ASP.NET 中Server.MapPath("../images/myImage.png")- 会工作,但我在JAVA
Server.MapPath("../images/myImage.png")