I'm not having success with it, and I'm not sure why.
I used this snippet as an example:
@Around("execution(List<Account> find*(..)) &&" +
"com.xyz.myapp.SystemArchitecture.inDataAccessLayer() && " +
public Object preProcessQueryPattern(ProceedingJoinPoint pjp, String accountHolderNamePattern)
But my equivalent advice does not work:
I enabled Spring logging, but it does not do any useful logging about aspects during method call. Only my unrestrictive 'execution' works if used alone. My web controllers are also managed by Spring.
@Around("execution(* project.service..*.*(..)) && within(project.web..*)")
I'll try some more, but if you have any good tip on this, I appreciate.