Class MybatisAutoConfiguration.MapperScannerRegistrarNotFoundConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean
    Enclosing class:
    MybatisAutoConfiguration

    @Configuration
    @Import(AutoConfiguredMapperScannerRegistrar.class)
    @ConditionalOnMissingBean(org.mybatis.spring.mapper.MapperFactoryBean.class)
    public static class MybatisAutoConfiguration.MapperScannerRegistrarNotFoundConfiguration
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    MapperScan ultimately ends up creating instances of MapperFactoryBean. If MapperScan is used then this auto-configuration is not needed. If it is _not_ used, however, then this will bring in a bean registrar and automatically register components based on the same component-scanning path as Spring Boot itself.
    • Constructor Detail

      • MapperScannerRegistrarNotFoundConfiguration

        public MapperScannerRegistrarNotFoundConfiguration()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean