Commit 3978700b authored by Dave Syer's avatar Dave Syer

More specific pointcut to be safe

parent 1ffdc90f
...@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component; ...@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
@Component @Component
public class ServiceMonitor { public class ServiceMonitor {
@AfterReturning("execution(* *..*Service.*(..))") @AfterReturning("execution(* sample..*Service.*(..))")
public void logServiceAccess(JoinPoint joinPoint) { public void logServiceAccess(JoinPoint joinPoint) {
System.out.println("Completed: " + joinPoint); System.out.println("Completed: " + joinPoint);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment