首页 > 代码库 > tomcat读取中文资源时报错404

tomcat读取中文资源时报错404

修改tomcat安装目录中server.xml,增加URIEncoding="UTF-8"的配置

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