Rust语言马老师
异常处理
@RestControllerAdvicepublic class GlobalExceptionHandler {
@ExceptionHandler(Exception.class)
public String handleException(Exception e) {
if (e instanceof ArithmeticException) {
return "";
}
if (e instanceof Exception) {
return "";
}
retur nnull;
}}