为什么 ServletContextListener 不受spring管理

J2EE 码拜 9年前 (2015-04-17) 994次浏览 0个评论
 

为什么ServletContextListener 不受spring管理

为什么 ServletContextListener 不受spring管理
5分
凭啥他要手spring管理呢,它在前,spring在后
为什么 ServletContextListener 不受spring管理
能说具体点吗O(∩_∩)O谢谢
为什么 ServletContextListener 不受spring管理
40分
因为Listener是servlet规范里的东西,servlet规范你可以想象成是Spring等框架建立的基础

另外,Filter和Servlet也是servlet规范里的东西,也就是它们都配置在web.xml文件中

spring有自己的上下文配置文件

为什么 ServletContextListener 不受spring管理
5分
4楼已经说了,spring不能把所有东西都包办了

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明为什么 ServletContextListener 不受spring管理
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!