spring一些坑

静态代理
user类+接口(基本操作)(加强类)
userService接口
userProxy类+接口(拓展操作) 属性有userService接口
test中拿new proxy(new user类)实现拓展+基本操作
不需要配置文件

spring Aop的通知
<API方式>
加强类+接口
消息类+beforeMethod接口
用配置接口 过滤器(前后环绕) 和加强类(就是基本业务的实现类)
test中 getBean使用接口接受 getBean(“userproxy”)
凡是class都需要配置bean元素

<注释方式>
excusion配置注意包名路径
beans.xml配置简单

spring一些坑