@Component
public class ExcelHelperAround
extends java.lang.Object
| 构造器和说明 |
|---|
ExcelHelperAround() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
excelAround(org.aspectj.lang.ProceedingJoinPoint joinPoint)
ExcelHelper切面执行
对于有 ExcelSheet注解的服务方法,自动根据注解创建SheetConfig实例,
并将服务方法中与ExcelSheet注解定义的方法名同名的参数注入到上面的SheetConfig实例中. |
static void |
setBeanClass(java.lang.Class<?> beanClass)
(非强制)为Spring AOP处理当前Excel导出指定导出记录列表的原始记录对象类型
|
static void |
setBeanClass(java.lang.Class<?> beanClass,
boolean force)
为Spring AOP处理当前Excel导出指定导出记录列表的原始记录对象类型,
切面处理时会根据此类型从类和字段注解中获取导出记录类型的Excel导出配置,
|
static void |
setSheetconfig(SheetConfig sheetConfig)
(非强制)为Spring AOP处理当前Excel导出指定的Excel配置对象
|
static void |
setSheetconfig(SheetConfig sheetConfig,
boolean force)
为Spring AOP处理当前Excel导出指定的Excel配置对象
|
public java.lang.Object excelAround(org.aspectj.lang.ProceedingJoinPoint joinPoint)
throws java.lang.Throwable
ExcelSheet注解的服务方法,自动根据注解创建SheetConfig实例,
并将服务方法中与ExcelSheet注解定义的方法名同名的参数注入到上面的SheetConfig实例中.
将服务方法返回的数据记录列表执行springWebExport(SheetConfig, Integer, String, String, ExcelGenerator)方法输出excel格式数据-parameters参数
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<compilerArg>-Xlint:unchecked</compilerArg>
<compilerArg>-parameters</compilerArg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
joinPoint - java.lang.Throwablepublic static void setSheetconfig(SheetConfig sheetConfig, boolean force)
sheetConfig - force - 为true强制替换ExcelGenerator生成的SheetConfig对象public static void setSheetconfig(SheetConfig sheetConfig)
public static void setBeanClass(java.lang.Class<?> beanClass,
boolean force)
force - 为true强制替换ExcelGenerator生成的SheetConfig对象setSheetconfig(SheetConfig, boolean)public static void setBeanClass(java.lang.Class<?> beanClass)
Copyright © 2022. All Rights Reserved.