org.springframework.stereotype

## 注释类型 Component

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

  Indicates that an annotated class is a "component". Such classes are considered as candidates for auto-detection when using annotation-based configuration and classpath scanning.

  Other class-level annotations may be considered as identifying a component as well, typically a special kind of component: e.g. the `@Repository` annotation or AspectJ's `@Aspect` annotation.

  从以下版本开始:
    2.5
  作者:
    Mark Fisher
  另请参阅:
    `Repository`, `Service`, `Controller`, `ClassPathBeanDefinitionScanner`

- - ### 可选元素概要

    可选元素
    限定符和类型 | 可选元素和说明
    --- | ---
    `String` | `value` The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.

- - ### 元素详细资料

    - #### value

          public abstract String value

      The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.
      返回:
        the suggested component name, if any (or empty String otherwise)
      默认值:
        ""