I am trying to set up Spring AOP without any XML.
I'd like to enable <aop:aspectj-autoproxy>
in a class which is
annotated with @Configuration
.
This is the way it would be defined in an XML-file:
<aop:aspectj-autoproxy>
<aop:include name="msgHandlingAspect" />
</aop:aspectj-autoproxy>
I tried to annotate my class with @Configuration
and @EnableAspectJAutoProxy
but nothing happened.