注释类型 ConfigPath


@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface ConfigPath
The configuration path used to mark the corresponding class or parameter.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    Whether to start with the root node.
    The path value of the current configuration.
  • 元素详细资料

    • value

      String value
      The path value of the current configuration. If not set,will generate the path by PathGenerator.
      返回:
      The path value of the current configuration
      默认值:
      ""
    • root

      boolean root
      Whether to start with the root node.
      If false, the previous path (if any) to the node is automatically added.
      If true, the path will be set directly from the root node.
      返回:
      Whether to start directly from the root path without inheriting the previous path
      默认值:
      false