问题:我有两个contextConfigLocation参数,一个是spring-social-facebook的@Configuration类,另一个是app的xml-file:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>com.communicator.core.social.facebook.config</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/root-context.xml</param-value>
</context-param>他们两个都使用一个param-name,我不知道如何修复它。
发布于 2013-05-31 23:11:44
你将会尝试这个
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/root-context.xml,
com.communicator.core.social.facebook.config
</param-value>
</context-param>发布于 2017-04-06 16:37:09
您可以使用空格来分隔<param-value>中的每个参数,如下所示。
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/resources/spring/*.xml /WEB-INF/resources/module/*.xml /WEB-INF/resources/function/*.xml /WEB-INF/resources/bean/*.xml</param-value>
</context-param>发布于 2018-10-10 22:13:23
在测试了所有答案后,没有一个对我有效。我在这篇文章中找到了解决方案JSF2 how to specify more than one custom element library in web.xml file
<param-value>com.communicator.core.social.facebook.config;/WEB-INF/root-context.xml</param-value>https://stackoverflow.com/questions/16860016
复制相似问题