Closed
Description
Simon Wong opened SPR-9464 and commented
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)
Affects: 3.1.1
Attachments:
- TestSpring31MyBatis.zip (10.58 kB)
Issue Links:
- BeanDefinitionRegistryPostProcessor registered via @Bean will not be invoked [SPR-7868] #12525 BeanDefinitionRegistryPostProcessor registered via
@Bean
will not be invoked ("duplicates") - BeanFactoryPostProcessor breaks default post-processing of @Configuration classes [SPR-8269] #12917 BeanFactoryPostProcessor breaks default post-processing of
@Configuration
classes
Referenced from: commits spring-attic/spring-framework-issues@a1584d7