1. 可以在每个war下的配置 /WEB-INF/web.xml
<mime-mapping id="MimeMapping_3">
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
2. 摘录自tomcat
<!-- ===================== Default MIME Type Mappings =================== -->
<!-- When serving static resources, Tomcat will automatically generate -->
<!-- a "Content-Type" header based on the resource's filename extension, -->
<!-- based on these mappings. Additional mappings can be added here (to -->
<!-- apply to all web applications), or in your own application's web.xml -->
<!-- deployment descriptor. -->
3.
4. 多台服务器,负载平衡?我不知道.