如题,捕获异常时,日志打印e.getMessage()为null
解决方案:
try {
//业务代码
} catch (Exception e) {
if (e instanceof InvocationTargetException && e.getMessage() == null) {
LogCache.info(LogDebug.key,"e:" + ((InvocationTargetException)e).getTargetException().getMessage());
}
}