原因:tomcat6不支持excel2007这种格式
解决办法:在conf\web.xml里添加以下代码:
<mime-mapping>
<extension>xlsx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
</mime-mapping>
本文介绍了如何通过修改Tomcat6的web.xml配置文件来实现对Excel2007文件的支持,包括添加特定的mime-mapping代码以确保服务器能够正确解析并显示此类文件。
原因:tomcat6不支持excel2007这种格式
解决办法:在conf\web.xml里添加以下代码:
<mime-mapping>
<extension>xlsx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
</mime-mapping>
转载于:https://www.cnblogs.com/sishierfei/archive/2011/12/03/2274681.html
2505

被折叠的 条评论
为什么被折叠?