Skip to content

Commit 87fc6db

Browse files
committed
静态代理
1 parent c519548 commit 87fc6db

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

MD/SpringAOP.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public class ProxyImplement implement InterfaceA{
4040

4141
}
4242
```
43+
使用如下:
44+
```
45+
public class Main(){
46+
public static void main(String[] args){
47+
InterfaceA interface = new ProxyImplement() ;
48+
interface.exec();
49+
}
50+
}
51+
```
52+
可以看出这样的代理方式调用者其实都不知道被代理对象的存在。
4353

4454
## JDK 动态代理
4555

0 commit comments

Comments
 (0)