title: How to load multiple configuration file from classpath using @ImportResource annotation in Spring
body: <p>I don't know,how to load multiple configuration files from classpath in spring using @ImportResource.I have already gone through the link  <a href="https://stackoverflow.com/questions/15004674/spring-3-importresource-with-multiple-files">Spring 3 @ImportResource with multiple files</a> but no luck so far. My code is below.</p>
  
  <pre><code>@Configuration
  @PropertySource("classpath:apis.application.properties")
  @ComponentScan(basePackages = {"org.surfnet.oaaas.resource", "org.surfnet.oaaas.service"})
  @ImportResource({"classpath:spring-repositories.xml,classpath:commonApplicationContext.xml"})
  @EnableTransactionManagement
  public class SpringConfiguration {
  
  }
  </code></pre>
  
  <p>Exception i am facing is </p>
  
  <pre><code>java.io.FileNotFoundException: class path resource [spring-repositories.xml,classpath:commonApplicationContext.xml] cannot be opened because it does not exist
      at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
  </code></pre>
  
  <p>How ever when i try to load a single file,like below.it works for both file.But i can not include two <code>ImportResource</code> annotation in a java class.</p>
  
  <pre><code>    @ImportResource("classpath:spring-repositories.xml"})
  </code></pre>