spring boot + proxy 기술 ( pointcut, 포인트컷 )


spring boot + proxy 기술 ( pointcut, 포인트컷 )

AOP 적용 지점을 가리키는 #포인트컷(#pointcut) 을 실습을 통해 자세히 알아보겠습니다. 아래와 같이 의존성을 넣어줍니다. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 포인트컷 테스트를 할 인터페이스를 아래처럼 하나 만듭니다. package me.test.intellij.service; public interface TestService { String dummyMethod(String name); } 위 인터페이스를 implement 한 클래스도 하나 만듭니다. package me.test.intellij.service; import org.springframework.stereotype.Service; @Service public class TestServiceImpl implements TestServ...


#args #pointcut #target #within #포인트컷 #annotation #bean #execution

원문링크 : spring boot + proxy 기술 ( pointcut, 포인트컷 )