您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
18_Request_获取ServletContext
发布时间:2022-08-12 22:30:20编辑:雪饮阅读()
获取request的ServletContext,这个东西这里暂且不做具体的了解。
只是了解下如何获取:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.println(request.getServletContext());
}
实际上这个从字面理解我觉得就是一个比较重要的东西,servlet上下文吧。
关键字词:Request,获取,ServletContext