批注接口 AutoConfigureOrder


@Retention(RUNTIME) @Target({TYPE,METHOD,FIELD}) @Documented public @interface AutoConfigureOrder
Auto-configuration specific variant of Spring Framework's @Order annotation. Allows auto-configuration classes to be ordered among themselves without affecting the order of configuration classes passed to AnnotationConfigApplicationContext.register(Class...).

As with standard @Configuration classes, the order in which auto-configuration classes are applied only affects the order in which their beans are defined. The order in which those beans are subsequently created is unaffected and is determined by each bean's dependencies and any @DependsOn relationships.

从以下版本开始:
1.3.0
作者:
Andy Wilkinson
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    int
    The order value.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    The default order value.
  • 字段详细资料

    • DEFAULT_ORDER

      static final int DEFAULT_ORDER
      The default order value.
      另请参阅:
  • 元素详细资料

    • value

      int value
      The order value. Default is 0.
      返回:
      the order value
      另请参阅:
      默认值:
      0