拦截器解决乱码问题 过滤器用法: @WebFilter(filterName="nn",urlPatterns="/*") public class myfilter implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { // TODO Auto-generated method stub System.out.println("ok"); chain.doFilter(request, response); } }//实现接口,使用注解,chain.doFilter方法释放请求
原文地址:https://www.cnblogs.com/qinyios/p/11124700.html
时间: 2024-09-30 10:44:07