如題,捕獲異常時,日誌打印e.getMessage()爲null
解決方案:
try {
//業務代碼
} catch (Exception e) {
if (e instanceof InvocationTargetException && e.getMessage() == null) {
LogCache.info(LogDebug.key,"e:" + ((InvocationTargetException)e).getTargetException().getMessage());
}
}