支持附件上传

This commit is contained in:
liming
2023-12-10 20:31:12 +08:00
parent aa18507143
commit 904728ef59
4 changed files with 75 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
package com.ruoyi.framework.web.exception;
import javax.servlet.http.HttpServletRequest;
import com.ruoyi.common.exception.NonCaptureException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.access.AccessDeniedException;
@@ -135,4 +137,13 @@ public class GlobalExceptionHandler
{
return AjaxResult.error("演示模式,不允许操作");
}
/**
* 不进行捕获的异常
*/
@ExceptionHandler(NonCaptureException.class)
public AjaxResult handleNonCaptureException(NonCaptureException e)
{
throw e;
}
}