How to put two param-values in one context-param in Spring?

uncle Lem picture uncle Lem · May 31, 2013 · Viewed 14.1k times · Source

Problem: I have two contextConfigLocation parameters, one with @Configuration classes for spring-social-facebook and one with xml-file for app:

<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>

Both of them use one param-name, and I don't know how to fix it.

Answer

ggarridov picture ggarridov · May 31, 2013

You will be try this

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/root-context.xml,
        com.communicator.core.social.facebook.config
    </param-value>
</context-param>