解决tomcat中文传输乱码问题
进入server.xml文件,找到
<Connector URIEncoding="utf-8" encoding="utf-8" connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>
添加URIEncoding="utf-8" encoding="utf-8"这两个属性,重新运行项目。ok!!!
进入server.xml文件,找到
<Connector URIEncoding="utf-8" encoding="utf-8" connectionTimeout="20000" port="80" protocol="HTTP/1.1" redirectPort="8443"/>
添加URIEncoding="utf-8" encoding="utf-8"这两个属性,重新运行项目。ok!!!