一. 知识储备
在web.xml中按代码提示快捷键,找到ContextLoaderListener,按Enter键,代码如下:
<!-- Spring提供的监听器 -->
<!-- needed for ContextLoaderListener -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<!-- Bootstraps the root web application context before servlet initialization -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
来源:CSDN
作者:Android_la
链接:https://blog.csdn.net/qq_40634846/article/details/104233800