title: Spring bean depends on a conditional bean
body: <p>I want a spring bean to be instanciated <strong>after another bean</strong>. So I simply use the <code>@DependsOn</code> annotation.</p>
  
  <p>The thing is : this other bean is a conditional bean wearing the
  <code>@ConditionalOnProperty(name = "some.property", havingValue = "true")</code> annotation.
  So when the property is false then the bean is not instanciated (and that's what we want), and the <code>@DependsOn</code> obviously fails. The goal here is : create the second bean anyway, but create it after the first one <strong>if it was created</strong>.</p>
  
  <p>Is there a way to do that without removing the <code>@ConditionalOnProperty</code> ? And without playing with the <code>@Order</code> annotation ?</p>
  
  <p>Thank you for your help </p>