版本2.5html
在web.xml中<url-pattern>/*</url-pattern>web
在Filter中 doFilter(..... )方法下寫代碼url
request.setCharacterEncoding("UTF-8");xml
response.setContentType("text/html");htm
response.setCharacterEncoding("UTF-8");blog
過濾器才生效coding