faeli.me

Tomcat GET 请求中中文参数乱码

需要在 Tomcat 配置conf/server.xml中加入URIEncoding="utf-8"

<Connector port="8000" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="utf-8"/>