title: How to disable auto configuration when test profile in @SpringBootApplication?
body: <p>Are there elegant ways to prevent AutoConfigure configuration classes when certain profile (e.g. <code>test</code>) in use? I've all configs in my tests, and don't wanna mark every config in main folder with <code>@Profile(&quot;!test&quot;)</code></p>
  <p>there also is: <code>@SpringBootApplication(exclude=****Configuration.class)</code> possibility but it's for class, not for profile.</p>