spring 同一個類中方法調用 註解不起做用

spring  同一個類中方法調用 註解不起做用 須要添加spring

AopContext.currentProxy()

這樣讓同一個類中走aop  代碼中註解起做用blog

test類test

調用方法aop

結果:方法

經過以上截圖發現添加AopContext.currentProxy()會讓註解起做用im

相關文章
相關標籤/搜索