全局异常处理

This commit is contained in:
RuoYi
2020-09-17 12:08:30 +08:00
committed by 疯狂的狮子li
parent fbb0786021
commit 14f7740398
3 changed files with 8 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ public class GlobalExceptionHandler
@ExceptionHandler(BaseException.class)
public AjaxResult baseException(BaseException e)
{
return AjaxResult.error(e.getMessage());
return AjaxResult.error(e.getDefaultMessage());
}
/**