问题:我有两个 contextConfigLocation
参数,一个带有用于 spring-social-facebook 的 @Configuration
类,另一个带有用于应用程序的 xml 文件:
<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
,我不知道如何修复它。
最佳答案
你会试试这个
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/root-context.xml,
com.communicator.core.social.facebook.config
</param-value>
</context-param>
关于spring - 如何在 Spring 中将两个参数值放在一个上下文参数中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16860016/