| | |
| | | response.setCharacterEncoding("UTF-8"); |
| | | response.setContentType("text/html;charset=utf-8"); |
| | | //检测跨域访问的请求 |
| | | System.out.println("##########################################"); |
| | | //System.out.println("##########################################"); |
| | | //非跨域请求 |
| | | isAlowCrossDomain(response); |
| | | chain.doFilter(request, response); |
| | |
| | | } |
| | | |
| | | public void init(FilterConfig arg0) throws ServletException { |
| | | System.out.println("##########################################"); |
| | | //System.out.println("##########################################"); |
| | | } |
| | | |
| | | public void destroy() { |
| | | System.out.println("##########################################"); |
| | | //System.out.println("##########################################"); |
| | | } |
| | | |
| | | /** |