Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2452

ApplicationTestConfig: CustomScopeConfigurer should be static

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: appng-testsupport
    • Labels:
      None

      Description

      2022-09-27 14:45:13,770 WARN  [main] org.springframework.context.annotation.ConfigurationClassEnhancer: 
      @Bean method ApplicationTestConfig.CustomScopeConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface.
      This will result in a failure to process annotations such as @Autowired, @Resource and @PostConstruct within the method's declaring @Configuration class.
      Add the 'static' modifier to this method to avoid these container lifecycle issues; see @Bean javadoc for complete details.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mueller.matthias Matthias Müller
                Reporter:
                mueller.matthias Matthias Müller
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: