首页>代码>Spring Hibernate Spring Data MongoDB Akka Titles Bootstrap JQuery Maven 大全>/ykameshrao-spring-hibernate-springdata-springmvc-maven-project-framework-6ed60ce/commons/src/main/java/com/yourpackagename/commons/filter/Utf8Filter.java
package com.yourpackagename.commons.filter; import javax.servlet.*; import java.io.IOException; /** * Utility class for UTF-8 Servlet Filter. This filter would be used to consistently set the character encoding as UTF-8. * * @author Y Kamesh Rao */ public class Utf8Filter implements Filter { @Override public void destroy() { } @Override public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { request.setCharacterEncoding("UTF-8"); chain.doFilter(request, response); } @Override public void init(FilterConfig arg0) throws ServletException { } }


irivn007 LV15
2022年12月24日
Add_Wa LV1
2022年11月18日
Super强 LV13
2022年10月21日
291373020 LV7
2022年5月31日
fengshengtian LV8
2022年2月26日
lingtiejing LV14
2022年2月23日
1615651451 LV2
2021年12月7日
weixiao LV6
2021年11月8日
1872615558 LV13
2021年11月2日
nihaomasb LV7
2021年9月4日