在JAVA中的怎么在过滤器中取到每一个URL请求?
在JAVA中的怎么在过滤器中取到每一个URL请求?
------解决方案--------------------顾虑器
------解决方案--------------------public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws
IOException,
ServletException {
HttpServletRequest req = (HttpServletRequest)request;
StringBuffer requestURL = req.getRequestURL();
}
------解决方案--------------------getRequestURL();