| 1234567891011121314151617181920212223242526 |
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by Fernflower decompiler)
- //
- package com.happy.filter;
- import javax.servlet.*;
- import java.io.IOException;
- public class CharacterEncodingFilter implements Filter {
- public CharacterEncodingFilter() {
- }
- public void destroy() {
- }
- public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
- request.setCharacterEncoding("utf-8");
- response.setCharacterEncoding("utf-8");
- chain.doFilter(request, response);
- }
- public void init(FilterConfig arg0) throws ServletException {
- }
- }
|