关于获取路径,request.getRealPath
request.getRealPath已经过时,那我们该用什么方法来代替? 经过测试,getServletContext().getRealPath();是正解 getServletContext().getRealPath("\");