Java 什么是SpringMVC中的ContextLoaderListener

Java 什么是SpringMVC中的ContextLoaderListener,java,spring-mvc,Java,Spring Mvc,我在web.xml文件中看到了这段代码 <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> org.springframework.web.context.ContextLoaderListener 我创建了一个小样本应用程序,但我以前没有使用过。这需要什么这用于在首次启动应用

我在web.xml文件中看到了这段代码

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

org.springframework.web.context.ContextLoaderListener

我创建了一个小样本应用程序,但我以前没有使用过。这需要什么

这用于在首次启动应用程序时加载应用程序配置文件