Annotation Interface TestComponent


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface TestComponent
@Component that can be used when a bean is intended only for tests, and should be excluded from Infra's component scanning.

Note that if you directly use @ComponentScan rather than relying on @InfraApplication you should ensure that a TypeExcludeFilter is declared as an excludeFilter.

从以下版本开始:
4.0
作者:
Phillip Webb
另请参阅:
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The value may indicate a suggestion for a logical component name, to be turned into a Infra bean in case of an auto-detected component.
  • 元素详细资料

    • value

      @AliasFor(annotation=cn.taketoday.stereotype.Component.class) String value
      The value may indicate a suggestion for a logical component name, to be turned into a Infra bean in case of an auto-detected component.
      返回:
      the specified bean name, if any
      默认值:
      ""