<bean id="message" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name=" interceptorNames"></property>
<property name=" interceptorNames"></property>
<property name="target" ref="代理目标类的Bean"></property>
<property name="proxyInterfaces"></property>
<property name="proxyTargetClass"></property>
</bean>
proprety的name属性有几个比较重要的值:proxyInterfaces,target,interceptorNames,proxyTargetClass
1.target属性:指明要代理的目标类 ,这个目标类实现了上面proxyInterfaces属性指定的接口。
2.proxyInterfaces属性:指明要代理的接口。
3.interceptorNames属性:指明要在代理的目标类中添加的功能,即advice 。
4.proxyTargetClass属性:,如果这个属性被设定为“true”,说明 ProxyFactoryBean要代理的不是接口类,而是要使用CGLIB方式来进行代理。