public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) resp;
        //1、获取页面中的访问的路径连接
        String path = request.getServletPath();
//        logger.info("###################begin login filter...");
       if(ignoreUrls!=null && isIgnoreUrl(request)){
//            如果页面中获取的访问连接在定义的ignoreUrls的里面，则放行
//           logger.info("###################begin login filter...,Ignore url:放行URL:"+request.getRequestURI());
            chain.doFilter(request, response);
            return;
        }

        //2、从session(fgzb_user)对象中获取当前登录的用户
        User user = (User)request.getSession().getAttribute("fgzb_user");
        if(user != null) {
            //if session object user is not null , it will igore it
//            logger.info("###################End login filter...,User is not null,放行:"+request.getRequestURI());
            chain.doFilter(request,response);
            return;
        }

//        logger.info("###################End login filter...,User is null,跳到登录页面:"+request.getRequestURI());
        //if it can not satisfied the above 2 point ,it will redirect to login page
        response.sendRedirect(request.getContextPath()+"/logout.do?fromLoginFilter=true");

    }