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