異常: java.lang.IllegalStateException: Cannot create a session after the response has been committed java
成因:response.sendRedirect("**"); session
chain.doFilter(request,response);
改正: spa
去掉chain.doFilter(request,response);