servlet读取Context 文件

流沙 | Android | 2016-07-07
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String ip = request.getRemoteAddr(); System.out.println(ip); //读取 3.txt String path3 = getServletContext().getRealPath("/WEB-INF/5.txt"); System.out.print...

阅读全文>>


Ɣ回顶部