title: Is there any way to enable or disable the Spring bean definition in applicationContext.xml file?
body: <p>Is there any way to <strong>enable</strong> or <strong>disable</strong> a java bean definition in application context?</p>
  
  <pre><code>&lt;bean id="enBean" classs="com.en.bean.BeanName"&gt;
     &lt;property name="prop1"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Or, is there any way to load the bean <strong>conditionally</strong> defined in application context? </p>