為什么有的配置xml中沒有使用ProxyFactoryBean
為什么配置xml中沒有使用ProxyFactoryBean,也能使用AOP,這種配置是如何工作的?比如:
<aop:config> ????????<aop:pointcut?id="loggerCutpoint" ????????????expression= ????????????"execution(*?com.how2java.service.ProductService.*(..))?"/> ????????????? ????????<aop:aspect?id="logAspect"?ref="loggerAspect"> ????????????<aop:after?pointcut-ref="loggerCutpoint"?method="log"/> ????????</aop:aspect> ??</aop:config>
2020-01-16
一個是xml文件配置<aop:config>來實現(xiàn)aop,一個是通過spring aop api 來實現(xiàn)aop,兩種方式。
2019-01-21
這個是切面編程,不是代理