Skip to content

Commit

Permalink
Update proxy.md
Browse files Browse the repository at this point in the history
JDK动态代理代码示例的第三点,重写invoacationHandler的invoke方法,没有加@OverRide注解
  • Loading branch information
DMJYY authored Dec 3, 2023
1 parent 7b0d616 commit 9c0e7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/basis/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public class DebugInvocationHandler implements InvocationHandler {
this.target = target;
}


@Override
public Object invoke(Object proxy, Method method, Object[] args) throws InvocationTargetException, IllegalAccessException {
//调用方法之前,我们可以添加自己的操作
System.out.println("before method " + method.getName());
Expand Down

0 comments on commit 9c0e7f5

Please sign in to comment.