How to log exception details in Spring AOP with try with empty catch block?
Log exception details in Spring AOP with empty catch block. For example:
try {
int data = 50 / 0;
} catch (Exception e) {
}
Exception not printing stack trace in spring aop for empty catch methods
I am using "@AfterThrowing" but its not working. Please find below code:
@AfterThrowing(pointcut ="catsServiceLevelLog()",throwing = "ex")
public void exceptionAdvice(Throwable ex) throws Throwable {
}
链接地址: http://www.djcxy.com/p/77258.html上一篇: django类需要装饰器