Changed method name in Spring Aspect.
This commit is contained in:
parent
bd3580585b
commit
e31c07a29c
|
@ -16,7 +16,7 @@ public class SpringTestAspect {
|
|||
private List<String> 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();
|
||||
|
|
Loading…
Reference in New Issue