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;
|
private List<String> accumulator;
|
||||||
|
|
||||||
@Around("execution(* com.baeldung.spring.service.SpringSuperService.*(..))")
|
@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();
|
String methodName = jp.getSignature().getName();
|
||||||
accumulator.add("Call to "+methodName);
|
accumulator.add("Call to "+methodName);
|
||||||
Object obj = jp.proceed();
|
Object obj = jp.proceed();
|
||||||
|
|
Loading…
Reference in New Issue