在 tomcat/conf/web.xml 里面增加如下的部分(里面有好多的这种映射) <mime-mapping> <extension> rar </extension> <mime-type> application/x-tar </mime-type> </mime-mapping>