每一次请求执行一次的过滤器
import org.springframework.web.filter.OncePerRequestFilter;
public class CheckSessionFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
filterChain.doFilter(request, response);
}
}
[color=red]疑问:这个真正有意义吗?[/color]
import org.springframework.web.filter.OncePerRequestFilter;
public class CheckSessionFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
filterChain.doFilter(request, response);
}
}
[color=red]疑问:这个真正有意义吗?[/color]