title: How do I set Spring/Gradle project class path to pick up configuration XML file
body: <p>I have a simple Spring,Gradle-based web service project with the following
  structure:</p>
  
  <pre><code>UserSettingController
    src/main/java
      com.ui.usersetting.datamodel
      com.ui.usersetting.restinterface
      com.ui.usersetting.UserSettingController
    resources
      resources_deployment1
         spring-resource1.xml
      resources_deployment2
      ...
  </code></pre>
  
  <p>There is an @Autowired JdbcTemplate variable in <code>com.ui.usersetting.datamodel</code>
  for which the definition appears in <code>resource/resources_deployment1/spring-resource1.xml</code>.
  There is also in <code>com.ui.usersetting.datamodel</code> a @Configuration file containing
  <code>@ImportResource("classpath:spring-resource1.xml")</code>.</p>
  
  <p>This builds and deploys OK, but when I hit one of the endpoints defined in
  <code>com.ui.usersetting.restinterface</code>, I get the following error from Spring:</p>
  
  <pre><code>class path resource [spring-resource1.xml] cannot be opened because it does not exist
  </code></pre>
  
  <p>I assume that this means that <code>UserSettingController/resources/resources_deployment1/</code>,
  which contains <code>spring-resource1.xml</code>, does not appear on the class path.  I've tried
  to fix this by setting the class path in Eclipse, but since I build using Gradle 
  command-line commands rather than Eclipse, this fix doesn't work.</p>
  
  <p>I need to maintain the structure above, rather than moving <code>spring-resource1.xml</code>
  to <code>src/main/resources</code>, to be consistent with other projects in our group.  So,
  how can I get Spring to look in the right place for <code>spring-resourc1.xml</code>?</p>