Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 705 Bytes

README.md

File metadata and controls

18 lines (17 loc) · 705 Bytes

Spring Boot 2 + Spring 5 + AOP - Demo

Learning...

Order

單一切面 - 正常情況

flowchart TB
	0((AOP)) --> 1([Around 環繞通知前置處理]) --> 2([Before]) --> 3[Target Object] --> 4([AfterReturning]) --> 5([After]) --> 6([Around 環繞通知後置處理])
Loading
- @Around Before -
@Before Advice 執行 : getEmployeeById 方法開始執行... 
Controller Layer - getEmployeeById method
Service Layer - getEmployeeById method
@AfterReturning Advice 執行 : getEmployeeById 方法返回值: <200 OK OK,Employee(id=11, firstName=test, lastName=test, email=test@gmail.com),[]>
@After Advice 執行 : getEmployeeById 方法執行結束... 
- @Around After -