You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
섹션7. AOP
1. AOP가 필요한 상황
문제 상황
모든 메소드의 호출 시간을 측정하고 싶다면?
위처럼 모든 코드에 시간을 측정하는 내용을 추가해야하는 문제 발생
2. AOP 적용
Aspect Oriented Programming 관점 지향 프로그래밍
공통 관심 사항과 핵심 관심 사항을 분리한다
@aspect 를 통해 aop 사용 가능
@around 를 통해 조건 범위 지정 가능
AOP 작동 방식
적용 전

적용 후

Beta Was this translation helpful? Give feedback.
All reactions