首页>代码>Spring MVC整合mongodb开发实现java web增删改查,适合Spring MVC和mongodb开发初学者>/MongoWeb/src/com/demo/mo/encoding/EncodingFilter.java
                
                package com.demo.mo.encoding;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class EncodingFilter implements Filter {
	private FilterConfig filterConfig;
	@Override
	public void destroy() {
		// TODO Auto-generated method stub
	}
	@Override
	public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
			throws IOException, ServletException {
			request.setCharacterEncoding("UTF-8");
			response.setCharacterEncoding("UTF-8");
			chain.doFilter(request, response);
	}
	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
	}
}
 最近下载更多
最近下载更多
                
                微信网友_7134912998903808     LV15
                2024年9月13日
            
            
        
                wanglinddad     LV55
                2022年2月17日
            
            
        
                凡人     LV2
                2021年6月23日
            
            
        
                阿风啦     LV14
                2021年5月10日
            
            
        
                xsxtxbb     LV8
                2021年3月9日
            
            
        
                zt3631877     LV9
                2021年1月9日
            
            
        
                541888     LV2
                2021年1月1日
            
            
        
                renjialu7     LV4
                2020年12月27日
            
            
        
                莫小哥加油哈     LV3
                2020年12月27日
            
            
        
                木木沐     LV7
                2020年11月21日
            
            
         最近浏览更多
最近浏览更多
                
                微信网友_7134912998903808     LV15
                2024年9月13日
            
            
        
                405117548     LV6
                2024年6月20日
            
            
        
                微信网友_7041475584184320    
                2024年6月17日
            
            
                    暂无贡献等级
            
        
                charles41000     LV1
                2023年10月31日
            
            
        
                liangge2115     LV27
                2023年4月16日
            
            
        
                2534857231     LV2
                2022年6月1日
            
            
        
                291373020     LV7
                2022年5月31日
            
            
        
                wanglinddad     LV55
                2022年2月17日
            
            
        
                nsz123456     LV11
                2021年12月11日
            
            
        
                Care269031877     LV4
                2021年11月28日
            
            
        
 
                 
                 
                