Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9464

Method postProcessBeanDefinitionRegistry is not called if the bean implements BeanDefinitionRegistryPostProcessor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The issue could be revealed if MyBatis for Spring is used.

      MapperScannerConfigurer in MyBatis for Spring v1.1.0+ has changed to use BeanDefinitionRegistryPostProcessor instead of BeanFactoryPostProcessor as of v1.0.x for scanning MyBatis mapper resources.

      The case is postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) is not called by Spring container if MapperScannerConfigurer is created through @Bean (but it will be called if the bean is created through XML configuration)

        Issue Links

          Activity

          simonwg Simon Wong created issue -
          cbeams Chris Beams made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Assignee Chris Beams [ cbeams ]
          cbeams Chris Beams made changes -
          Link This issue duplicates SPR-7868 [ SPR-7868 ]
          cbeams Chris Beams made changes -
          Link This issue is related to SPR-8269 [ SPR-8269 ]
          simonwg Simon Wong made changes -
          Attachment TestSpring31MyBatis.zip [ 19798 ]
          tmarshall Trevor Marshall made changes -
          Workflow SPR Workflow [ 53695 ] New SPR Workflow [ 57160 ]
          tmarshall Trevor Marshall made changes -
          Workflow New SPR Workflow [ 57160 ] SPR Workflow [ 66226 ]

            People

            • Assignee:
              cbeams Chris Beams
              Reporter:
              simonwg Simon Wong
              Last updater:
              Eduardo Macarron
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 36 weeks, 1 day ago