2013-12-11 23:25:13

Tomcat 处理GET乱码

Tomcat的conf下server.xml默认有个uri编码,可以解决GET请求编码问题。
<Connector port="8080" maxHttpHeaderSize="8192"  
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"  
               enableLookups="false" redirectPort="8443" acceptCount="100"  
               connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" />
发表回复