@Component
public class ExcelHelperAround
extends java.lang.Object
| 构造器和说明 |
|---|
ExcelHelperAround() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
excelAround(org.aspectj.lang.ProceedingJoinPoint joinPoint)
ExcelHelper切面执行
对于有 ExcelSheet注解的服务方法,自动根据注解创建SheetConfig实例,
并将服务方法中与ExcelSheet注解定义的方法名同名的参数注入到上面的SheetConfig实例中. |
static SheetConfig |
getSheetconfig()
返回为Spring AOP处理当前Excel导出的Excel配置对象
|
static void |
setQueueTimeout(int queueTimeout)
(非强制)为Spring AOP处理当前Excel导出指定的阻塞队列超时时间(秒)
|
static void |
setSheetconfig(SheetConfig sheetConfig)
(非强制)为Spring AOP处理当前Excel导出指定的Excel配置对象
|
static void |
setSheetconfig(SheetConfig sheetConfig,
boolean force)
为Spring AOP处理当前Excel导出指定的Excel配置对象
|
static void |
setTotalRowCount(long totalRowCount)
(非强制)为Spring AOP处理当前Excel导出指定的阻塞队列记录总数
|
public java.lang.Object excelAround(org.aspectj.lang.ProceedingJoinPoint joinPoint)
throws java.lang.Throwable
ExcelSheet注解的服务方法,自动根据注解创建SheetConfig实例,
并将服务方法中与ExcelSheet注解定义的方法名同名的参数注入到上面的SheetConfig实例中.
将服务方法返回的数据记录列表执行springWebExport(SheetConfig, Integer, 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 setQueueTimeout(int queueTimeout)
queueTimeout - public static void setTotalRowCount(long totalRowCount)
totalRowCount - public static SheetConfig getSheetconfig()
Copyright © 2025. All Rights Reserved.