标签:todo tor override ati throws gen des imp request
import org.apache.log4j.Logger;
public class MyFilter implements Filter {
Logger log = Logger.getLogger(this.getClass().getName());
// private static final Log log = LogFactory.getLog(MyFilter.class);
@Override
public void destroy() {
// TODO Auto-generated method stub
}
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
// TODO Auto-generated method stub
HttpServletRequest rq=(HttpServletRequest)request;
log.info("用户执行:"+rq.getRequestURL());
chain.doFilter(request,response);
}
@Override
public void init(FilterConfig arg0) throws ServletException {
// TODO Auto-generated method stub
}
}
标签:todo tor override ati throws gen des imp request
原文地址:http://www.cnblogs.com/j-liu3323/p/7641876.html