p132代码解析

Posted 这是一个博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了p132代码解析相关的知识,希望对你有一定的参考价值。

1.  long before = System.currentTimeMillis();
     long after = System.currentTimeMillis();

//该两句代码规定了一个doFilter()拦截用户请求的过滤范围。  

2. HttpServletRequest hrequest = (HttpServletRequest) request;

//HttpServletRequest接口是ServletRequest子接口,HttpServletRequest接口遵循http协议。将请求转换成HttpServletRequest请求。

3. System.out.println("Filter 已经截获到用户的请求的地址: "  + hrequest.getSeryletPath() ); 

//输出提示信息,输出截获到用户的请求的地址。

 

以上是关于p132代码解析的主要内容,如果未能解决你的问题,请参考以下文章