现在有几个自定义类型的文件:
A.data.gz
A.framework.js.gz
A.wasm.gz
我在web.xml里配置了
<mime-mapping>
<extension>data.gz</extension>
<mime-type>application/octet-stream</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wasm.gz</extension>
<mime-type>application/wasm</mime-type>
</mime-mapping>
<mime-mapping>
<extension>js.gz</extension>
<mime-type>application/javascript</mime-type>
</mime-mapping>
但是tomcat似乎并不能正确区分这几种文件类型的后缀名,请问应该怎么配置才能让tomcat返回正确的文件呢
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…