tomcat: server.xml中connector中加上:useBodyEncodingForURI="true"
example:
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="1000"
connectionTimeout="20000" disableUploadTimeout="true" useBodyEncodingForURI="true"/>
Jetty: webdefault.xml中加上一段:
jsp
org.apache.jasper.servlet.JspServlet
<!--主要是这一段-->
javaEncoding
GBK
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/106285/viewspace-973539/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/106285/viewspace-973539/