Logging 由于控制台日志,Struts 2页面速度变慢

Logging 由于控制台日志,Struts 2页面速度变慢,logging,struts2,log4j,Logging,Struts2,Log4j,通过在struts.xml中放置以下常量,我禁用了struts 2的开发模式: <constant name="struts.devMode" value="false" /> 但是,我的页面加载速度非常慢,在控制台上可以看到很多mime类型的输出: <mime-mapping> <extension>pptm</extension> <mime-type>application/vnd.ms- powerpoint.pres

通过在struts.xml中放置以下常量,我禁用了struts 2的开发模式:

<constant name="struts.devMode" value="false" />
但是,我的页面加载速度非常慢,在控制台上可以看到很多mime类型的输出:

 <mime-mapping>
 <extension>pptm</extension>
 <mime-type>application/vnd.ms-  powerpoint.presentation.macroenabled.12</mime-type>
</mime-mapping>

<welcome-file-list>
<welcome-file>/redirect.jsp</welcome-file>
</welcome-file-list>
15:53:28.524 [http-bio-8080-exec-1] DEBUG c.o.x.conversion.impl.XWorkConverter - falling back to default type converter   [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@3810f3d8]
15:53:28.524 [http-bio-8080-exec-1] DEBUG org.apache.struts2.components.UIBean - Rendering template /template/xhtml/form-close
15:53:28.552 [http-bio-8080-exec-1] DEBUG o.a.s.c.t.FreemarkerTemplateEngine - Rendering template /template/xhtml/form-close.ftl
15:53:28.632 [http-bio-8080-exec-1] DEBUG c.o.x.interceptor.I18nInterceptor - after Locale=en_US
15:53:28.636 [http-bio-8080-exec-1] DEBUG c.o.x.interceptor.I18nInterceptor - intercept } 
15:53:28.637 [http-bio-8080-exec-1] DEBUG o.s.o.h.s.OpenSessionInViewFilter - Closing Hibernate Session in OpenSessionInViewFilter
15:53:28.641 [http-bio-8080-exec-1] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally
15:53:28.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
15:53:28.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed

pptm
application/vnd.ms-powerpoint.presentation.macroenabled.12
/redirect.jsp
15:53:28.524[http-bio-8080-exec-1]调试c.o.x.conversion.impl.XWorkConverter-返回默认类型转换器[com.opensymphony.xwork2.conversion.impl]。XWorkBasicConverter@3810f3d8]
15:53:28.524[http-bio-8080-exec-1]调试org.apache.struts2.components.UIBean-呈现模板/template/xhtml/form close
15:53:28.552[http-bio-8080-exec-1]调试o.a.s.c.t.FreeMarker模板引擎-呈现模板/template/xhtml/form-close.ftl
15:53:28.632[http-bio-8080-exec-1]调试c.o.x.interceptor.I18nInterceptor-after Locale=en_-US
15:53:28.636[http-bio-8080-exec-1]调试c.o.x.interceptor.I18nInterceptor-intercept}
15:53:28.637[http-bio-8080-exec-1]调试o.s.o.h.s.OpenSessionInViewFilter-关闭OpenSessionInViewFilter中的Hibernate会话
15:53:28.641[http-bio-8080-exec-1]调试o.s.s.w.a.例外TranslationFilter-链正常处理
15:53:28.643[http-bio-8080-exec-1]调试o.s.s.w.c.HttpSessionSecurityContextRepository-SecurityContext为空或内容为匿名-上下文将不会存储在HttpSession中。
15:53:28.643[http-bio-8080-exec-1]调试o.s.s.w.c.SecurityContextPersistenceFilter-请求处理完成后,SecurityContextHolder现在已清除

您确定您的log4j属性文件位于正确的位置吗?您是否真的在使用log4j?请澄清您的具体问题或添加其他详细信息,以突出显示您所需要的内容。正如目前所写的,很难准确地说出你在问什么。请参阅“如何询问”页面,以获得澄清此问题的帮助。
 <mime-mapping>
 <extension>pptm</extension>
 <mime-type>application/vnd.ms-  powerpoint.presentation.macroenabled.12</mime-type>
</mime-mapping>

<welcome-file-list>
<welcome-file>/redirect.jsp</welcome-file>
</welcome-file-list>
15:53:28.524 [http-bio-8080-exec-1] DEBUG c.o.x.conversion.impl.XWorkConverter - falling back to default type converter   [com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter@3810f3d8]
15:53:28.524 [http-bio-8080-exec-1] DEBUG org.apache.struts2.components.UIBean - Rendering template /template/xhtml/form-close
15:53:28.552 [http-bio-8080-exec-1] DEBUG o.a.s.c.t.FreemarkerTemplateEngine - Rendering template /template/xhtml/form-close.ftl
15:53:28.632 [http-bio-8080-exec-1] DEBUG c.o.x.interceptor.I18nInterceptor - after Locale=en_US
15:53:28.636 [http-bio-8080-exec-1] DEBUG c.o.x.interceptor.I18nInterceptor - intercept } 
15:53:28.637 [http-bio-8080-exec-1] DEBUG o.s.o.h.s.OpenSessionInViewFilter - Closing Hibernate Session in OpenSessionInViewFilter
15:53:28.641 [http-bio-8080-exec-1] DEBUG o.s.s.w.a.ExceptionTranslationFilter - Chain processed normally
15:53:28.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.c.HttpSessionSecurityContextRepository - SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
15:53:28.643 [http-bio-8080-exec-1] DEBUG o.s.s.w.c.SecurityContextPersistenceFilter - SecurityContextHolder now cleared, as request processing completed