總結

AOP = Aspect-Oriented Programming (切面導向程式設計)

將所有方法要執行的共同邏輯 ,,統一地寫在切面裡面 ,並且讓這個切面去橫貫所有的方法 ,替所有的方法去執行這個共同的邏輯

創建切面的方法

@Aspect + @Component

可使用的切面註解

@Before、@After、@Around