title: Use wildcard in @Profile
body: <p>How can I use wildcard in <code>@Profile</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>@Profile("*-from-db")
  private class Foo {
  </code></pre>
  
  <p><code>Foo</code> bean should be activated when the <code>spring.profiles.active</code> is ended with <code>"-from-db"</code>; like dev-from-db, qa-from-db, prod-from-db, etc.</p>