ExcelAnnotation.java
929 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.framework.excel;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.apache.poi.hssf.usermodel.HSSFCell;
/**
*
* @ClassName: ExcelAnnotation
* @Description: excel注解类
* @author Tim.Wang
* @date 2016年7月5日 下午2:01:48
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.FIELD })
public @interface ExcelAnnotation {
/**
* 导入到excel的名字
*/
String name();
/**
* 配置列名,对应A,B,C,D....
*/
String column();
/**
* 提示信息
*/
String prompt() default "";
/**
* 设置只能选择不能输入的列内容.
*/
String[] combo() default { };
/**
* 是否导出数据,为false时只导出标题
*/
boolean isExport() default true;
int cellType() default HSSFCell.CELL_TYPE_STRING;
}