1.全局异常处理器报错修复
This commit is contained in:
@@ -53,7 +53,7 @@ public class CzgControllerAdvice {
|
|||||||
/**
|
/**
|
||||||
* 处理自定义异常
|
* 处理自定义异常
|
||||||
*/
|
*/
|
||||||
@ExceptionHandler(value = {CzgException.class, IllegalArgumentException.class})
|
@ExceptionHandler(value = {CzgException.class})
|
||||||
public CzgResult handleCzgException(CzgException ex) {
|
public CzgResult handleCzgException(CzgException ex) {
|
||||||
return CzgResult.failure(ex.getCode(), ex.getMsg());
|
return CzgResult.failure(ex.getCode(), ex.getMsg());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user