Changed method name in Spring Aspect.

This commit is contained in:
chernykhalexander 2016-08-13 18:33:45 +03:00
parent bd3580585b
commit e31c07a29c
1 changed files with 1 additions and 1 deletions

View File

@ -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();