title: How to specify multiple conditions using @Conditional annotation
body: <p>I am doing a Spring project for the first time and am stuck with a problem.</p>
  
  <p>I have a java class:</p>
  
  <pre><code>@Component
  @Conditional(AppA.class)
  public class AppDeploy {...}
  </code></pre>
  
  <p>Now I need to modify this like:</p>
  
  <pre><code>@Component
  @Conditional(AppA.class or AppB.class)
  public class AppDeploy {...}
  </code></pre>
  
  <p>Can someone help me with how to do this? 
  Thanks in anticipation.</p>