类 MapperAutoConfiguration.AutoConfiguredMapperScannerRegistrar

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware
    封闭类:
    MapperAutoConfiguration

    public static class MapperAutoConfiguration.AutoConfiguredMapperScannerRegistrar
    extends Object
    implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.ResourceLoaderAware, org.springframework.context.EnvironmentAware
    This will just scan the same base package as Spring Boot does. If you want more power, you can explicitly use MapperScan but this will get typed mappers working correctly, out-of-the-box, similar to using Spring Data JPA repositories.
    • 构造器详细资料

      • AutoConfiguredMapperScannerRegistrar

        public AutoConfiguredMapperScannerRegistrar()
    • 方法详细资料

      • registerBeanDefinitions

        public void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
                                            org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
        指定者:
        registerBeanDefinitions 在接口中 org.springframework.context.annotation.ImportBeanDefinitionRegistrar
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        指定者:
        setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
        抛出:
        org.springframework.beans.BeansException
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        指定者:
        setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware