注释类型 HeaderComments


@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface HeaderComments
Header Comments. Add a comment to the top of the corresponding configuration for easy reading and viewing.

e.g.

 # The first line of the comment
 # The second line of the comment
 foo: "bar"
 
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    @NotNull String[]
    If the content of the note is 0, it will be treated as a blank line.
  • 元素详细资料

    • value

      @NotNull @NotNull String[] value
      If the content of the note is 0, it will be treated as a blank line.

      e.g. {"foo","","bar"} Will be set as

       # foo
      
       # bar
       foo: "bar"
       
      返回:
      The content of this comment
      默认值:
      {""}