mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 17:35:22 +00:00
More specific pointcut to be safe
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user