Browse Source

More specific pointcut to be safe

pull/1618/head
Dave Syer 12 years ago
parent
commit
3978700b4a
  1. 2
      spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java

2
spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java

@ -25,7 +25,7 @@ import org.springframework.stereotype.Component; @@ -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);
}

Loading…
Cancel
Save