Spring/AOP
-
AOP란?Spring/AOP 2024. 4. 14. 23:50
AOP(Aspect Oriented Programming) 란? 관점 지향 프로그래밍이라고 불리며 어떤 로직을 기준으로 핵심적인 관점(core concerns), 부가적인 관점(cross-cutting concerns)으로 나누어 모듈화 하는 방법을 말한다. AOP 예시 회원가입기능을 만들고 회원가입 기능의 성능을 확인하기 위해 소요시간이 얼마나 걸렸는지 계산하는 로직을 추가하고 싶다. public class MemberService { private MemberRepository memberRepository; @Autowired public MemberService(MemberRepository memberRepository) { this.memberRepository = memberRepositor..