title: Maven integration test not working with Spring
body: <p>I am running a database integration test on my current project. I am using maven currently for it. When I run the test some values are not being loaded from my properties files. To load the properties I am using </p>
  
  <pre><code>@PropertySource("classpath:foo.properties)
  </code></pre>
  
  <p>I am also using thymeleaf to get the values.</p>
  
  <pre><code>@Value("${fieldsToSetString}")
  private String fieldsToSetString;
  </code></pre>
  
  <p>I believe the issue is that from the tests maven doesn't know that I am using Spring because I am using annotations rather than a traditional web.xml so it does not run my Application.class which specifies that I am using Spring. So maven isn't recognizing the @PropertySource annotation. Anyone know how to solve this issue so that the annotation can be resolved while running the integration test?</p>