在web.xml中配置spring配置文件的路径

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
       classpath:/spring/dataAccessContext_weblogic.xml,
       classpath:/applicationContext.xml
    </param-value>
</context-param>
原文地址:https://www.cnblogs.com/fabulousyoung/p/4073833.html