@AfterReturning aspect executes in same transaction of pointcut method?
问题 I have a requirement to do a task after execution of a function. I have used Aspect for this. but I have some confusion. I have a function A() in a spring service. @Transactional(readOnly = false, isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) void A() { //Do Something } I have an @Afterreturning aspect on this function. @AfterReturning(pointcut = "execution(Sevice.saverecord(..)) ") public void processNotifications(JoinPoint jp) {} I want