MCPcopy Create free account
hub / github.com/TanaStudy/Java-Study / AfterLog

Class AfterLog

4. Spring/spring-09-aop/src/main/java/com/log/AfterLog.java:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.lang.reflect.Method;
6
7public class AfterLog implements AfterReturningAdvice {
8
9 //returnVaule: 返回值
10 public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
11 System.out.println(method.getName()+returnValue);
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected