I have following AOP configuration:
This works OK, the advice is executed for all beans in package com.abc.. with @Audited annotation. However, it seems that ALL beans with types in package com.abc are now proxied, which results in exceptions when I want to inject beans with concrete types.
<aop:aspect id="operatorAuditAspect" ref="operatorAPIAuditor">
<aop:pointcut id="auditedOperation" expression="within(com.abc..*) && (@target(com.abc.Audited) || @annotation(com.abc.Audited))" />
<aop:after pointcut-ref="auditedOperation" method="doAudit" />
No matching bean of type [com.abc.Foo] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.
Is this normal?