解析指定模板的Excel,模板如下:

解析指定模板的Excel

首先定义一个注解

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ExcelColumn {
    
       //名称
    String value() default "";
       //行数
        int col() default 0;
}
ExcelColumn

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-12-18
  • 2021-12-07
  • 2021-12-29
  • 2022-12-23
  • 2022-02-25
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
相关资源
相似解决方案