2
Spring 프레임 워크에서 Spring AOP를 pure aspectJ로 변경하고 싶습니다.스프링 프레임 워크에서 순수한 aspectJ를 사용하고 싶습니다.
스프링 AOP는 아래와 같이 사용됩니다.
<aop:config >
<aop:pointcut id="testopiaLogging" expression="execution(public * cosmos..*SVC.*(..))" />
<aop:aspect ref="testopiaLoggingAspect">
<aop:after-throwing method="throwError" throwing="exception" pointcut-ref="testopiaLogging"/>
<aop:after-returning method="log" returning="retVal" pointcut-ref="testopiaLogging"/>
</aop:aspect>
</aop:config>
나는
스프링 aspect.jar이 클래스 경로에 설정되어있는 URL의 페이지 아래에 accroding 순수한 AspectJ를로 변경됩니다.
그래서 나는 aop.xml을 만들었습니다.
<aspectj>
<weaver>
<include within="cosmos.*" />
</weaver>
<aspects>
<aspect name="com.sds.testopia.logger.aop.TestopiaAspect" />
</aspects>
</aspectj>
- 다음으로는 잘 알 수 없다 .. 나는 내가 사용 시간 위버와 로그 화면 파일이 .aj 변경해야로드 것 같아요 aspect, point-cut 키워드를 사용하고 jar 파일을 작성하는 것을 권장합니다.
c 및 세부 설명. 고마워.