小编Ral*_*igh的帖子

ApplicationContext和ServletContext

当谈到Spring MVC Application时,我对两个ApplicationContext和ServletContext感到困惑.我知道每个Spring Web应用程序只有一个ApplicationContext,每个Web应用程序也只有一个ServletContext.要在web.xml中启动ApplicationContext和ServletContext的值,我们将在context-param标记中添加一些内容.

这让我感到困惑.这两者之间有什么区别(我知道ApplicationContext有一些方法可以使用bean)?而我们将使用的ApplicationContext我们将使用ServletContext的

java spring servlets spring-mvc applicationcontext

23
推荐指数
2
解决办法
3万
查看次数

标签 统计

applicationcontext ×1

java ×1

servlets ×1

spring ×1

spring-mvc ×1