I have a ResourceAspect
class:
//@Component
@Aspect
public class ResourceAspect {
@Before(\"execution(public * *(..))\")
public void resour
My guess is that your pointcut execution(* *(..))
(which basically says "intercept the world") affects too many components, even Spring-internal ones. Just limit it to the classes or packages you really want to apply your aspect to, e.g.
execution(* my.package.of.interest..*(..))
or
within(my.package.of.interest..*) && execution(* *(..))
You could also exclude the ones you don't need woven if that is easier to specify:
!within(my.problematic.ClassName) && execution(* *(..))
or
!within(my.problematic.package..*) && execution(* *(..))
BTW, of course your aspect needs to be a @Component
when using Spring AOP (not AspectJ).