写try/catch的时候可能有多个异常类型处理方式相同,如果用多个catch代码块的话代码会很冗余,可以用如下写法进行简化:
try {
//```
} catch (ServiceRequestException | AutodiscoverLocalException e) {
log.error("Error=============>" + e.getMessage());
} catch (Exception e) {
log.error("Error=============>" + e.getMessage());
}