Pre Merge pull request !22 from CrazyCoderST/master

pull/22/MERGE
CrazyCoderST 5 years ago committed by Gitee
commit bbf871a2de

@ -15,7 +15,7 @@ import com.ruoyi.common.core.web.domain.AjaxResult;
/**
*
*
*
* @author ruoyi
*/
@RestControllerAdvice
@ -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());
}
/**
@ -73,7 +73,7 @@ public class GlobalExceptionHandler
String message = e.getBindingResult().getFieldError().getDefaultMessage();
return AjaxResult.error(message);
}
/**
*
*/
@ -82,7 +82,7 @@ public class GlobalExceptionHandler
{
return AjaxResult.error("没有权限,请联系管理员授权");
}
/**
*
*/

Loading…
Cancel
Save