解决思路:<br>
配置web工程web.xml加上<br>
<mime-mapping><br>
<extension>doc</extension><br>
<mime-type>application/msword</mime-type><br>
</mime-mapping><br>
<mime-mapping><br>
<extension>xls</extension><br>
<mime-type>application/vnd.ms-excel</mime-type><br>
</mime-mapping><br>
修改后非常注意的要清空缓存这样才会弹出保存还是打开的窗口否则打开还是乱码.
配置web工程web.xml加上<br>
<mime-mapping><br>
<extension>doc</extension><br>
<mime-type>application/msword</mime-type><br>
</mime-mapping><br>
<mime-mapping><br>
<extension>xls</extension><br>
<mime-type>application/vnd.ms-excel</mime-type><br>
</mime-mapping><br>
修改后非常注意的要清空缓存这样才会弹出保存还是打开的窗口否则打开还是乱码.