Annotation Interface ExcelProperty


@Target(FIELD) @Retention(RUNTIME) @Inherited public @interface ExcelProperty
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Class<? extends Converter>
    Force the current field to use this converter.
    已过时。
    please use DateTimeFormat
    int
    Index of column Read or write it on the index of column,If it's equal to -1, it's sorted by Java class
    The name of the sheet header.
  • 元素详细资料

    • value

      String[] value
      The name of the sheet header.

      write: It automatically merges when you have more than one head

      read: When you have multiple heads, take the first one

      返回:
      The name of the sheet header
      默认值:
      {""}
    • index

      int index
      Index of column Read or write it on the index of column,If it's equal to -1, it's sorted by Java class
      返回:
      Index of column
      默认值:
      -1
    • converter

      Class<? extends Converter> converter
      Force the current field to use this converter.
      返回:
      Converter
      默认值:
      com.sh.wf.excel.converters.AutoConverter.class
    • format

      已过时。
      please use DateTimeFormat
      default @see com.sh.wf.excel.util.TypeUtil if default is not meet you can set format
      返回:
      Format string
      默认值:
      ""