今天搭建新的项目,虽然在web.xml中配置了ContextLoaderListener以及IntrospectorCleanupListener

如下:

web.xml中部分代码:

 1 <!-- 监听servletContext,启动contextConfigLocation中的spring配置信息 -->
 2     <listener>
 3         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 4     </listener>
 5 
 6 
 7     <!-- 防止spring内存溢出监听器   可用可不用-->
 8     <listener>
 9         <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
10     </listener>
View Code

相关文章: