More specific pointcut to be safe

This commit is contained in:
Dave Syer 2014-07-07 08:24:24 +01:00
parent 1ffdc90f04
commit 3978700b4a

View File

@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
@Component
public class ServiceMonitor {
@AfterReturning("execution(* *..*Service.*(..))")
@AfterReturning("execution(* sample..*Service.*(..))")
public void logServiceAccess(JoinPoint joinPoint) {
System.out.println("Completed: " + joinPoint);
}