servlet读取Context 文件

2016-7-7 流沙 Android

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...

阅读全文>>

标签: servlet 读取资源文件

评论(0) 浏览(386)


Powered by 流沙团