Home » Java » java – Calling annotated method inside another method AOP Spring-Exceptionshub

java – Calling annotated method inside another method AOP Spring-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I created annotation and aspect using spring. I used this annotation above one method in service bean. When this method is called directly aspect is being triggered. But the problem is when this annotated method is called inside another method in the same service bean. I have done some research but I couldn’t find anything what makes more sense or is not, a “Hack” in code. Is there any possibility to do what I want to achieve using AOP ?

Thanks in advance

How to&Answers: