Spring logs configuration hint when BeanFactoryPostProcessor beans are not exposed via static method

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.15.0-alpha5, 7.15.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Problem

      Spring logs the following:

      [main] INFO org.springframework.context.annotation.ConfigurationClassPostProcessor - Cannot enhance @Configuration bean definition 'org.camunda.bpm.client.spring.impl.PostProcessorConfiguration' 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'.
      

      Solution

      Define bean methods that return a type assignable to BeanFactoryPostProcssor as static

        This is the controller panel for Smart Panels app

              Assignee:
              Tassilo Weidner-Mühl
              Reporter:
              Tassilo Weidner-Mühl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: