mirror of https://github.com/alibaba/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
755 B
39 lines
755 B
7 years ago
|
package com.alibaba.excel.annotation;
|
||
|
|
||
|
import java.lang.annotation.ElementType;
|
||
|
import java.lang.annotation.Inherited;
|
||
|
import java.lang.annotation.Retention;
|
||
|
import java.lang.annotation.RetentionPolicy;
|
||
|
import java.lang.annotation.Target;
|
||
|
|
||
|
/**
|
||
|
* @author jipengfei
|
||
|
*/
|
||
|
@Target(ElementType.FIELD)
|
||
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
@Inherited
|
||
|
public @interface ExcelProperty {
|
||
|
|
||
|
/**
|
||
|
* 某列表头值
|
||
|
* @return
|
||
|
*/
|
||
|
String[] value() default {""};
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 列顺序,越小越靠前
|
||
|
* @return
|
||
|
*/
|
||
|
int index() default 99999;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* default @see com.alibaba.TypeUtil
|
||
|
* if default is not meet you can set format
|
||
|
*
|
||
|
* @return
|
||
|
*/
|
||
|
String format() default "";
|
||
|
}
|