//request.getServletContext().getRealPath("/")获取项目路径
String imgPath = request.getServletContext().getRealPath("/")+"upload/"+pictureURL;
//request.getServletContext().getRealPath("/")获取项目路径
String imgPath = request.getServletContext().getRealPath("/")+"upload/"+pictureURL;
本文标题:java 获取服务器文件路径
本文链接:https://www.haomeiwen.com/subject/yjqujxtx.html
网友评论