web项目启动之后,返回中文字符乱码。解决方案:
Servers/server.xml文件
将相关语句改为:
<Connector port="8008" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
加一句 URIEncoding="UTF-8" 重启运行ok
web项目启动之后,返回中文字符乱码。解决方案:
Servers/server.xml文件
将相关语句改为:
<Connector port="8008" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
加一句 URIEncoding="UTF-8" 重启运行ok