title: The difference between @ActiveProfiles and @TestPropertySource
body: <p>What is the difference between these two annotations?  </p>
  
  <pre><code>@ActiveProfiles("test")
  @TestPropertySource({"classpath:/application-test.properties"})
  </code></pre>
  
  <p>I've seen both these annotations on the same test class and as far as I can tell they both result in the application-test.properties being loaded (overriding any conflicting properties from the main application.properties)</p>