title: SpringBoot Cannot enhance @Configuration bean definition 'beanNamePlaceholderRegistryPostProcessor'
body: <p>I recently started getting this warning on start up of my Spring Boot application:</p>
  
  <blockquote>
    <p>o.s.c.a.ConfigurationClassPostProcessor - Cannot enhance
    @Configuration bean definition
    'beanNamePlaceholderRegistryPostProcessor' since its singleton
    instance has been created too early. The typical cause is a non-static
    @Bean method with a BeanDefinitionRegistryPostProcessor return type:
    Consider declaring such methods as 'static'.</p>
  </blockquote>
  
  <p>I cannot figure out where it is coming from. I have no such classes ('beanNamePlaceholderRegistryPostProcessor', 'BeanDefinitionRegistryPostProcessor') in my app that I can find so not sure how to prevent this from happening. </p>
  
  <p>Anyone have any ideas? </p>
  
  <p>This question is slightly different to <a href="https://stackoverflow.com/questions/37614313/warn-about-non-static-configurationclasspostprocessor-declarations-on-configura">this one</a> as that one seems to be with a class that the user has created.</p>