1.全局异常处理器报错修复
This commit is contained in:
parent
5f0b4365af
commit
15d1af91be
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue