切面日志中代码块中是否try-cache捕获了异常
@Around("pointCutMethod()")
public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
}
我因为添加了异常捕获,故RestControllerAdvice以及切面日志都无法捕获异常信息
try {
ret = (ResponseBase)pjp.proceed();
} catch (Exception e) {
log.info("{}",e);
}
多谢这位老铁提点,@gloomysun https://www.cnblogs.com/lullaby/p/10275954.html