tomcat软连接无法访问文件出现的404错误

tomcat6

在context.xml中添加上<Context allowLinking="true" /> 

tomcat软连接无法访问文件出现的404错误

tomcat8

在context.xml中添加上

<Context>

    <Resources allowLinking="true" />

</Context>