posted 12 years ago
Hi All,
I am using annotation to add aspects to my programs. I declared a class and annoted it, to make it as an aspect class i.e added @Aspect annotation before class declaration and other advice annotations (eg. @Before, @AfterReturning) before the methods. To make this aspect to work, I have also added <aop:aspectj-autoproxy/> in the Spring configuration xml. But still my aspects are not working.
<aop:aspectj-autoproxy/> is not detecting my aspect class.
It works only when I add a bean of my aspect class type in spring configuration xml. Is this correct behaviour? Please correct me if it is wrong.
Thanks,
G. Kamal.