From e31c07a29c3c7aafe7b8d88da86ea6c3784544cd Mon Sep 17 00:00:00 2001 From: chernykhalexander Date: Sat, 13 Aug 2016 18:33:45 +0300 Subject: [PATCH] Changed method name in Spring Aspect. --- .../main/java/com/baeldung/spring/aspect/SpringTestAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdi/src/main/java/com/baeldung/spring/aspect/SpringTestAspect.java b/cdi/src/main/java/com/baeldung/spring/aspect/SpringTestAspect.java index 8c2ff2600b..5d7b064d71 100644 --- a/cdi/src/main/java/com/baeldung/spring/aspect/SpringTestAspect.java +++ b/cdi/src/main/java/com/baeldung/spring/aspect/SpringTestAspect.java @@ -16,7 +16,7 @@ public class SpringTestAspect { private List accumulator; @Around("execution(* com.baeldung.spring.service.SpringSuperService.*(..))") - public Object advice(ProceedingJoinPoint jp) throws Throwable { + public Object auditMethod(ProceedingJoinPoint jp) throws Throwable { String methodName = jp.getSignature().getName(); accumulator.add("Call to "+methodName); Object obj = jp.proceed();