Spring AOP

pring實現動態代理配置是有兩種配置文件: 1、   xml文件方式; 2、   annotation方式(使用AspectJ類庫實現的。) 一、       AOP配置annotation方式 (一)  搭建annotation開發環境 首先:需要在配置文件中加入@AspectJ標籤 <aop:aspectj-autoproxy/> 自動幫我產生代理 注意:Spring默認並沒有加入aop的x
相關文章
相關標籤/搜索