Skip to content

Commit

Permalink
FEAT(#1) :: Poinctcut 등록
Browse files Browse the repository at this point in the history
- <aop:pointcut>: 포인트컷을 정의하기 위한 태그
- id="point": 이 포인트컷의 ID. 나중에 Advice에서 참조할 수 있도록 식별자 역할을 한다.
- expression="execution(* org.example.bean.TargetClass.*(..))": 어떤 메서드를 대상으로 포인트컷을 적용할지 명시한다.
  • Loading branch information
mic050r committed Oct 2, 2024
1 parent eb83fd0 commit c12a90c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AOP/src/main/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<aop:config>
<!-- 충고 등록 -->
<aop:aspect ref="aspectClass">
<!-- Pointcut 등록 -->
<aop:pointcut id="point" expression="execution(* org.example.bean.TargetClass.*(..))"/>

</aop:aspect>
</aop:config>
Expand Down

0 comments on commit c12a90c

Please sign in to comment.