1. AOP란?
- 관점지향 프로그램
- MVC 패턴에서 각 레이어에서 반복적으로 사용하는 기능을 따로 모아서 정리
2. 관련 Annotation
- @Aspect : AOP를 정의하는 class 에 해당
- @Pointcut : 기능을 적용 시킬 지점 설정
- @Before : 메서드 실행 전
- @After : 메서드 실행 후
- @AfterReturing : 메서드 실행 성공 후
- @AfterThrowing : 메서드 실행 실패 시
- @Around : Before/After 모두 제어
'Spring Boot > Framework' 카테고리의 다른 글
[Springboot] REST Template (0) | 2024.02.03 |
---|---|
[Springboot] Vailidation (0) | 2024.01.30 |
[Springboot] IOC 와 DI (0) | 2024.01.29 |
[Springboot] Delete API (0) | 2024.01.27 |
[Springboot] PUT API (0) | 2024.01.27 |