有没有一种方法可以在Spring MVC应用程序中使用web.xml加载上下文?
发布于 2011-06-23 16:45:41
您还可以指定相对于当前类路径的上下文位置,这可能更可取
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
https://stackoverflow.com/questions/6451377
复制相似问题