标签: java java-ee filter servlet-filters
在doFilter方法中,我们使用以下代码访问会话:
HttpServletRequest request = (HttpServletRequest) servletRequest;
但是," HttpServletRequest "扩展" servletRequest ",所以理论上我们不应该把父亲放在儿子身上。