AOP基礎概念
什麼是AOP
AOP(Aspect Oriented Programming)意為:面向切面編程。
通過預編譯的方式和運行期動態代理實現程序功能的統一維護的一種技術。
AOP是OOP的延續,是軟件開發中的一個熱點,也是Spring框架中的一個重要內容,是函數式編程的一種衍生型態。
利用AOP可以對業務邏輯的各個部分進行隔離,從而使得業務邏輯各部分之間的耦合度降低,提高程序的可重用性,同時提高了開發的效率。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
AOP在String中的作用
提供聲明式事務;允許用戶自定義切面
- 橫切關注點:跨用應用程序多個模塊或功能。即是,與我們業務邏輯無關的,但是我們需要關注的部分,就是橫切關注點。如日誌、安全、緩存、事務等等
- 切面(ASPECT):橫切關注點、被模塊化的特殊對象,即,他是一個類
- 通知(Advice):切面必須要完成的工作。即,他是類中的一個方法
- 目標(Target):被通知對象
- 代理(Proxy):向目標對象應用通知之後創建的對象
- 切入點(PointCut):切面通知執行的"地點"的定義
- 連接點(JointPoint):與切入點匹配的執行點
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →