![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts2
LiTianao88
Hello Java!
展开
-
在web.xml中注册IntrospectorCleanupListener监听器以解决struts等框架可能产生的内存泄露问题
增加方式如下: [html] view plaincopy listener> listener-class> org.springframework.web.util.IntrospectorCleanupListener listener-class>转载 2016-12-15 16:27:27 · 182 阅读 · 0 评论 -
struts.objectFactory和struts.objectFactory.spring.autoWire
struts.objectFactory这个属性用于说明Struts2的对象池创建工厂,Struts2也有自己的对象池,就像spring那样,在配置文件中你可以引用对象池中的对象,你可以借助于Spring中的对象池,当想要得到Spring中的对象池时,申明struts.objectFactory为Spring的对象池构建工厂。当指定struts.objectFactory为spring时,stru转载 2016-12-15 16:30:09 · 670 阅读 · 0 评论