场景:页面预览服务器上的pdf文档,由于文档是中文名称报404错误
解决:修改tomcat服务器的server.xml,如下图添加 URIEncoding='UTF-8'
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>