org.springframework.context.annotation

## 注释类型 Import

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
       @Documented
      public @interface Import

  Indicates one or more `@Configuration` classes to import.

  Provides functionality equivalent to the `<import/>` element in Spring XML. Allows for importing `@Configuration` classes, `ImportSelector` and `ImportBeanDefinitionRegistrar` implementations, as well as regular component classes (as of 4.2; analogous to `AnnotationConfigApplicationContext.register(java.lang.Class<?>...)`).

  `@Bean` definitions declared in imported `@Configuration` classes should be accessed by using `@Autowired` injection. Either the bean itself can be autowired, or the configuration class instance declaring the bean can be autowired. The latter approach allows for explicit, IDE-friendly navigation between `@Configuration` class methods.

  May be declared at the class level or as a meta-annotation.

  If XML or other non-`@Configuration` bean definition resources need to be imported, use the `@ImportResource` annotation instead.

  从以下版本开始:
    3.0
  作者:
    Chris Beams, Juergen Hoeller
  另请参阅:
    `Configuration`, `ImportSelector`, `ImportResource`

- - ### 必需元素概要

    所需元素
    限定符和类型 | 必需的元素和说明
    --- | ---
    `Class<?>[]` | `value` `Configuration`, `ImportSelector`, `ImportBeanDefinitionRegistrar` or regular component classes to import.

- - ### 元素详细资料

    - #### value

          public abstract Class<?>[] value

      `Configuration`, `ImportSelector`, `ImportBeanDefinitionRegistrar` or regular component classes to import.