在web.xml文件中读取spring-security.xml配置文件

<!--设置全局参数,读取核心配置文件-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:spring/*.xml,classpath:spring-security.xml</param-value>
</context-param>

  

原文地址:https://www.cnblogs.com/Hubert-dzl/p/11451067.html