Skip to content

Commit 3978700

Browse files
author
Dave Syer
committed
More specific pointcut to be safe
1 parent 1ffdc90 commit 3978700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
@Component
2626
public class ServiceMonitor {
2727

28-
@AfterReturning("execution(* *..*Service.*(..))")
28+
@AfterReturning("execution(* sample..*Service.*(..))")
2929
public void logServiceAccess(JoinPoint joinPoint) {
3030
System.out.println("Completed: " + joinPoint);
3131
}

0 commit comments

Comments
 (0)