title: Spring boot @ConditionalOnBean does not detect bean missing, throws exception "No qualifying bean of type"
body: <p>Have this @Configuration class that requires a bean implementing JmsProperties which is declared in the @ConditionalOnBean </p>
  
  <pre><code>@Configuration
  @ConditionalOnBean(JmsProperties.class)
  public class JmsConfiguration {
  
      @Inject
      private JmsProperties properties;
      ...
  }
  </code></pre>
  
  <p>Getting exception:</p>
  
  <pre><code>   Caused by: 
     org.springframework.beans.factory.NoSuchBeanDefinitionException:        
     No qualifying bean of type [com.....JmsProperties] found for dependency: 
  </code></pre>
  
  <p>Isn't the @ConditionalOnBean supposed to detect this missing bean and not try to inject the dependency in the first place? </p>
  
  <p>Thanks in advance for any pointers</p>