linux下tomcat无法访问中文路径或中文文件

设置tomcat,配置conf文件夹下server.xml文件,加入 URIEncoding="UTF-8" 如下

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