title: Springboot-- How to use @Profile with value having regular expression?
body: <p>I have a class in my springboot maven project. I want to annotate Class with @Profile in a way that this class should not be configured for any profile ending with '-test'.</p>
  
  <p>ConfigureData class is under /main.</p>
  
  <p>Under my /test directory, I have couple of tests classes annotated with @ActiveProfiles as 'unit-test', 'integration-test', 'functional-test', 'system-test' etc.  </p>
  
  <p>I am trying something like below to ignore auto configuration of 'ConfigureData' class for all the profiles ending with '-test', but it is not working! </p>
  
  <p>Is there a way to achieve this using some regular expression without specifying name of each and every test profile under @Profile?</p>
  
  <pre><code>@Configuration
  @Profile("!.*-test")
  public class ConfigureData {
  
  }
  </code></pre>