`

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

 
阅读更多

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

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

 只需增加红色语句,设置请求地址编码格式为UTF-8

0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics