→ gpctv: AOP不是一種剖面嗎? 09/21 19:45
→ gpctv: 用來監聽Bean的使用!!! 09/21 19:45
→ gpctv: 沒聽過AspectJ 09/21 19:46
類似下面這種用法
https://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/
基於annotation的AspectJ
我是聽在深圳駐點的SI說大陸很多有用spring的整合案子很多都是用AspectJ來
實作,我也是這樣所以去爬了相關文檔自己trytry看,發現比只用spring來實現
aop還要靈活 但我問身邊幾個有過spring經驗的沒幾個人知道這東西
※ 編輯: new122851 (61.231.32.220), 09/21/2016 22:44:52
推 luoqr: ppt.cc / zs7Wi 09/21 23:09
推樓上這篇文! 很詳細
至於台灣用spring aop還是aspectj哪個多呢? 我問到的是AspectJ很少甚至沒有
※ 編輯: new122851 (61.231.32.220), 09/21/2016 23:39:13
→ adrianshum: 大部份Spring aop 都不是用aspectJ 吧?印象中aspectJ 09/22 22:45
→ adrianshum: 用到的部份都只是一些expression 還還輔助lib 之類。 09/22 22:45
→ adrianshum: 實際AOP 通常都只是靠Spring 的Proxy-based AOP (也 09/22 22:45
→ adrianshum: 有人用load time weaving 啦... 比較少就是) 09/22 22:45
→ swpoker: 我是用sprint aop因為既然用spring那就用spring aop吧 09/23 14:58
感謝各位踴躍回復!
我後來發現對岸有一篇翻譯簡述了SpringAOP和AspectJ的區別
http://www.oschina.net/translate/comparative_analysis_between_spring_aop_and_aspectj
原來AspectJ也可以解決static和fina方法不能被覆蓋的問題
※ 編輯: new122851 (61.231.20.220), 09/23/2016 21:09:10
推 haha02: Apress的Pro Spring有蠻詳細的介紹 有興趣的話可以看看 09/24 03:05
→ haha02: 目前最新的應該是第四版 ISBN 9781430261513 09/24 03:06