renran421 发表于 2017-1-31 15:27:58

tomcat 造成的乱码原因与解决方案

  只需在tomcat/conf/server.xml 中增加一句代码即可

    <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"URIEncoding="UTF-8"/>
  只需增加红色语句,设置请求地址编码格式为UTF-8
页: [1]
查看完整版本: tomcat 造成的乱码原因与解决方案