项目地址
String filePath = request.getSession().getServletContext().getRealPath("/") + "upload/" F:\Project\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\monkey\upload/
服务器地址
String projectServerPath = request.getScheme() + "://"+request.getServerName()+":" + request.getServerPort() + request.getContextPath() + "/upload/"; http://localhost:8080/monkey/upload/
项目根目录,比如要访问upload,即用:http://localhost:8080/monkey/upload/