tomcat打开rar文件乱码

tomcat无法下载rar文件,而是在页面里面打开,打开后一片乱码:
配置文件中增加:
<mime-mapping>
<extension>rar</extension>
<mine-type>application/rar</mime-type>
</mime-mapping>
This entry was posted in Computer, Java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s