com.pig4cloud.plugin.excel.annotation.RequestExcel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.pig4cloud.plugin.excel.annotation;
import com.pig4cloud.plugin.excel.handler.DefaultAnalysisEventListener;
import com.pig4cloud.plugin.excel.handler.ListAnalysisEventListener;
import java.lang.annotation.*;
/**
* 导入excel
*
* @author lengleng
* @author L.cm
* @date 2021/4/16
*/
@Documented
@Target({ ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestExcel {
/**
* 前端上传字段名称 file
*/
String fileName() default "file";
/**
* 读取的监听器类
* @return readListener
*/
Class extends ListAnalysisEventListener>> readListener() default DefaultAnalysisEventListener.class;
/**
* 是否跳过空行
* @return 默认跳过
*/
boolean ignoreEmptyRow() default false;
}