Package net.mingsoft.basic.aop
Class FileVerifyAop
java.lang.Object
net.mingsoft.basic.aop.BaseAop
net.mingsoft.basic.aop.FileVerifyAop
验证zip是否合法的aop
重写basic增加自定义配置
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckZip(org.springframework.web.multipart.MultipartFile multipartFile, boolean isWeb) 检查压缩包protected net.mingsoft.base.entity.ResultDataprepareUpload(UploadConfigBean uploadConfigBean, boolean isWeb) 抽取共用文件上传检查uploadAop(org.aspectj.lang.ProceedingJoinPoint joinPoint) 后台上传文件的时候,将验证zip里的文件void切入点webUploadAop(org.aspectj.lang.ProceedingJoinPoint joinPoint) web上传文件的时候,将验证zip里的文件Methods inherited from class net.mingsoft.basic.aop.BaseAop
getAnnotation, getJsonParam, getType, getType
-
Constructor Details
-
FileVerifyAop
public FileVerifyAop()
-
-
Method Details
-
uploadPointCut
public void uploadPointCut()切入点 -
uploadAop
后台上传文件的时候,将验证zip里的文件- Parameters:
joinPoint-- Returns:
- Throws:
Throwable
-
webUploadAop
web上传文件的时候,将验证zip里的文件- Parameters:
joinPoint-- Returns:
- Throws:
Throwable
-
prepareUpload
protected net.mingsoft.base.entity.ResultData prepareUpload(UploadConfigBean uploadConfigBean, boolean isWeb) throws Exception 抽取共用文件上传检查- Parameters:
uploadConfigBean- 上传文件对象- Throws:
Exception
-
checkZip
protected void checkZip(org.springframework.web.multipart.MultipartFile multipartFile, boolean isWeb) throws Exception 检查压缩包- Throws:
Exception
-