java实现excel的导出功能(超简单实现方式)
1、自定义接口注解
@Documented
@Target(value = {
ElementType.METHOD, ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface AsyncExcelService {
/**
* 标识code
* @return
*/
String taskCode();
/**
* 导出对象
* @return
*/
Class<?> eClazz();
/**
* 子目录
* exportUrl+ path
* @return
*/
String path() default "";
/**
* 是否异步
* @return
*/
boolean async() default true;
/**
* 导出类型
* @return
*/