I am trying to set up an AOP configuration on my spring project.
In the xml context file, I added :
My bean is clear from annotation. There are many public methods.Code:<aop:aspectj-autoproxy> <aop:include name="myBean" /> </aop:aspectj-autoproxy>
I made a class to manage the Aop :Code:@Service("myBean") public class MyBean{ public void method() { ... }
When I call a public method from myBean, it doesn't call createAction() method.Code:@Aspect public class AopClass{ @Pointcut("execution(public * *(..))") public void createAction() { System.out.println("testing aop"); } }
Thank you.


Reply With Quote