Annotation Type ConfigPath


@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface ConfigPath
The configuration path used to mark the corresponding class or parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to start with the root node.
    The path value of the current configuration.
  • Element Details

    • value

      String value
      The path value of the current configuration. If not set,will generate the path by PathGenerator.
      Returns:
      The path value of the current configuration
      Default:
      ""
    • 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.
      Returns:
      Whether to start directly from the root path without inheriting the previous path
      Default:
      false