版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36367789/article/details/55667213
确定配置文件位置
<context-param>
<param-name>contextConfigLocation</param-name><param-value>classpath:applicationContext.xml</param-value>
</context-param>
配置spring监听器
<listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>