如何优雅的导入excel解析保存对象(注解加反射)
1.首先定义导出注解
import java.lang.annotation.*;
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ExcelHeader {
/**
* 表头
* @return
*/
String value() default "";
/**
* 列索引
* @return
转载
2022-03-22 16:18:22 ·
285 阅读 ·
0 评论