Configure tomcat to support. MAP format
Development uses js to write. a 404 error is displayed when accessing the file ending with map in the browser. (The file exists and the access path is correct. JS files)
View web logs and the Error 404 is displayed.
Find an article on the Internet, as shown below:
######################################## ###
File Types supported by Tomcat Extension
Today I found a strange problem:. jpg files can be normally displayed, but. jpg files cannot be displayed, and files cannot be found.
Solution:
Open the Web. xml file under tomcat/config and add:
<Mime-mapping>
<Extension> JPG </extension>
<Mime-type> image/JPEG </mime-type>
</Mime-mapping>
######################################## ####
Inspired by the above Code, VI opened web. XML, searched for JS, and found the following code,
<Mime-mapping>
<Extension> JS </extension>
<Mime-type> application/JavaScript </mime-type>
</Mime-mapping>
The following code is added to Web. xml:
<Mime-mapping>
<Extension> Map </extension>
<Mime-type> application/JavaScript </mime-type>
</Mime-mapping>
After Tomcat is restarted, access to the browser is normal, and the web log returns 200
This article from "Youth Deng Yong" blog, please be sure to keep this source http://dengyong.blog.51cto.com/8409869/1569522
Configure tomcat to support. MAP format