当谈到Spring MVC Application时,我对两个ApplicationContext和ServletContext感到困惑.我知道每个Spring Web应用程序只有一个ApplicationContext,每个Web应用程序也只有一个ServletContext.要在web.xml中启动ApplicationContext和ServletContext的值,我们将在context-param标记中添加一些内容.
这让我感到困惑.这两者之间有什么区别(我知道ApplicationContext有一些方法可以使用bean)?而当我们将使用的ApplicationContext和当我们将使用ServletContext的?