出现异常捕捉更改入参重新执行当前方法一次
问题相关代码
public String getMsg(String u) throws IOException {
try {
u.split(1);
} catch (NopointException e) {
log.info("为空:" + e.getMessage());
getMsg("123");
}
return result;
}
入参
String a =null;
getMsg(a)