🎨 优化点代码

This commit is contained in:
Binary Wang 2020-03-08 19:54:20 +08:00
parent 1b193e3070
commit 06aaacce65

View File

@ -50,14 +50,13 @@ public class BeanUtils {
}
}
field.setAccessible(isAccessible);
} catch (SecurityException | IllegalArgumentException
| IllegalAccessException e) {
} catch (SecurityException | IllegalArgumentException | IllegalAccessException e) {
log.error(e.getMessage(), e);
}
}
if (!requiredFields.isEmpty()) {
String msg = "必填字段 " + requiredFields + " 必须提供值";
String msg = String.format("必填字段【%s】必须提供值", requiredFields);
log.debug(msg);
throw new WxErrorException(WxError.builder().errorMsg(msg).build());
}