1.全局异常处理器报错修复

This commit is contained in:
张松 2025-02-10 16:05:09 +08:00
parent 5f0b4365af
commit 15d1af91be
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class CzgControllerAdvice {
/**
* 处理自定义异常
*/
@ExceptionHandler(value = {CzgException.class, IllegalArgumentException.class})
@ExceptionHandler(value = {CzgException.class})
public CzgResult handleCzgException(CzgException ex) {
return CzgResult.failure(ex.getCode(), ex.getMsg());
}