com.kangaroohy.plugin.excel.annotation.ExcelSelector 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.kangaroohy.plugin.excel.annotation;
import com.kangaroohy.plugin.excel.service.ExcelSelectorService;
import java.lang.annotation.*;
/**
* 类 ExcelSelector 功能描述:
*
* @author hy
* @version 0.0.1
* @date 2023/9/7 16:22
*/
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelSelector {
/**
* 固定数据
*/
String[] value() default {};
/**
* 字典key
*/
String dictKeyValue() default "";
/**
* 服务类,需要交给spring管理,如 @Service,如果只有一个实现类时,此属性可以不设置
*/
Class extends ExcelSelectorService> serviceClass() default ExcelSelectorService.class;
/**
* 设置下拉框的起始行,默认为第二行
*/
int firstRow() default 1;
/**
* 设置下拉框的结束行,默认为最后一行 0x10000
*/
int lastRow() default 0x10000;
}