From 3978700b4af52cfed238c4ec0bf2d47c2fe44cab Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 7 Jul 2014 08:24:24 +0100 Subject: [PATCH] More specific pointcut to be safe --- .../src/main/java/sample/aop/monitor/ServiceMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java b/spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java index 3f90659aae..c946735fd5 100644 --- a/spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java +++ b/spring-boot-samples/spring-boot-sample-aop/src/main/java/sample/aop/monitor/ServiceMonitor.java @@ -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); }