Class FileVerifyAop

java.lang.Object
net.mingsoft.basic.aop.BaseAop
net.mingsoft.basic.aop.FileVerifyAop

@Component public class FileVerifyAop extends BaseAop
验证zip是否合法的aop 重写basic增加自定义配置
  • Constructor Details

    • FileVerifyAop

      public FileVerifyAop()
  • Method Details

    • uploadPointCut

      public void uploadPointCut()
      切入点
    • uploadAop

      public Object uploadAop(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      后台上传文件的时候,将验证zip里的文件
      Parameters:
      joinPoint -
      Returns:
      Throws:
      Throwable
    • webUploadAop

      public Object webUploadAop(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      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