com.houkunlin.system.common.aop.DownloadPoiHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of system-common-aop-starter Show documentation
Show all versions of system-common-aop-starter Show documentation
常用的 AOP 注解功能。
Commonly used AOP annotation features.
The newest version!
package com.houkunlin.system.common.aop;
import org.springframework.core.io.ClassPathResource;
import org.springframework.lang.NonNull;
import java.io.IOException;
import java.io.InputStream;
/**
* Excel/Word 导出下载处理器
*
* @author HouKunLin
*/
public interface DownloadPoiHandler {
/**
* 获取模板文件输入流
*
* @param templateName 模板文件
* @return 文件输入流
* @throws IOException 打开文件异常
*/
InputStream getTemplate(@NonNull String templateName) throws IOException;
}