| | |
| | | import javax.naming.SizeLimitExceededException; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.exception.ManagementException; |
| | | import org.apache.commons.fileupload.FileUploadBase; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | log.error("上传文件异常 => : {}", e.getMessage()); |
| | | return AjaxResult.error("文件识别大小超出限制,允许的大小在" + "500MB"); |
| | | } |
| | | |
| | | /** |
| | | * 管理后台单点登录-异常信息 |
| | | */ |
| | | @ExceptionHandler(ManagementException.class) |
| | | public R<String> studyLoginExceptionHandler(ManagementException e) { |
| | | return R.fail(e.getCode(), e.getMessage()); |
| | | } |
| | | } |