AOP설정 aspectJ 경로 도대체 왜 안될까요 ㅜㅜ..

67 views
Skip to first unread message

록's

unread,
May 26, 2012, 10:29:41 AM5/26/12
to ks...@googlegroups.com

진짜 진짜 해결 하고 싶은데 해결이 안되네요 ㅜㅜ..

포인트컷 경로를 execution(* *.*(..))  이렇게 해주면 됩니다 

근데 이렇게 해주면 아무래도 좀 그렇죠;;?

execution(public * com.groupA.groupB.controller.*.*(..))

이렇게 하면 안됩니다..(grouopA와 groupB는 가려진 부분입니다)

com.groupA.groupB.controller 하위에 aop적용 하고 싶은데 왜 안될까요...



록's

unread,
May 26, 2012, 10:31:53 AM5/26/12
to ks...@googlegroups.com


2012년 5월 26일 토요일 오후 11시 29분 41초 UTC+9, 록's 님의 말:
aop설정은

<aop:aspectj-autoproxy />
<bean class="com.groupA.groupB.aop.Test" />

이렇게 하였습니다 

이호연

unread,
May 27, 2012, 9:34:20 PM5/27/12
to ks...@googlegroups.com
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/aop.html#aop-pointcuts-combining 참고하세요.
a.b.c..*.*(..) 처럼 하위패키지는 .. 로 설정하면 될 겁니다.

2012년 5월 26일 오후 11:31, 록's <caine...@gmail.com>님의 말:

--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이 전송되었습니다.
웹에서 이 토론을 보려면 https://groups.google.com/d/msg/ksug/-/yzBO99uTyccJ을(를) 방문하세요.

이 그룹에 게시하려면 ks...@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+uns...@googlegroups.com로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을 방문하세요.

Bumjun Park

unread,
Jun 8, 2012, 11:36:13 PM6/8/12
to ks...@googlegroups.com
감사합니다 알고 보니 제가 dispatcher-servlet이랑 applicationContext 이거를 햇갈려서 넣어놨더군요 ㅠㅠ

2012년 5월 28일 오전 10:34, 이호연 <rea...@gmail.com>님의 말:
Reply all
Reply to author
Forward
0 new messages