修复断言错误bug

This commit is contained in:
TinyAnts 2022-04-27 15:21:51 +08:00
parent eece440fc1
commit 0c9210dd24
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ public class GlobalException {
*/
@ResponseStatus(HttpStatus.OK)
@ExceptionHandler(IllegalArgumentException.class)
@ResponseBody
public AjaxResult handleIllegalArgumentException(IllegalArgumentException e) {
Integer code = HttpEnum.ASSERT_ARGUMENT_ERROR.getCode();
String msg = Objects.requireNonNull(e.getMessage());