启动的时候,发现Tomcat7.0.50用了大量的时间去加载mime,而且每次执行一个action请求,它就疯狂的再来加载mime,服务器加载日志Initializing Spring root WebApplicationContext定在这里,打印信息如下:
[code="java"]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="2.4"
metadata-complete="true">
Struts 2 - Maven Archetype - Starter
contextConfigLocation
classpath*:applicationContext*.xml
struts2-prepare
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter
false
sitemesh
com.opensymphony.module.sitemesh.filter.PageFilter
false
struts2-execute
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter
false
struts2-prepare
/*
sitemesh
/*
struts2-execute
/*
org.springframework.web.context.ContextLoaderListener
jsp
org.apache.jasper.servlet.JspServlet
fork
false
xpoweredBy
false
classdebuginfo
true
3
default
org.apache.catalina.servlets.DefaultServlet
debug
0
listings
false
1
jsp
.jsp
jsp
.jspx
default
/
30
fh7
image/x-freehand
fh5
image/x-freehand
...这里省略N多的mime加载
index.jsp
default.jsp
index.html
[/code]
我只部署了一个项目,我想不明白这个mime加载时设置在哪里的,我有什么办法避免这个问题。