일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 네트워크
- find
- netsh
- grep
- Windows
- tomcat
- ssh
- vscode
- Windows 10
- Source
- VirtualBox
- context
- Quartz
- 줄바꿈 문자
- import
- bash
- maVen
- IntelliJ
- 단축키
- port
- resource
- profile
- Eclipse
- JavaScript
- lsof
- GIT
- plugin
- web.xml
- xargs
- Mac
- Today
- Total
develog
Spring AOP 설정 본문
<bean id="logAspect" class="com.my.LogAspect" />
<aop:config proxy-target-class="true">
<aop:aspect ref="logAspect">
<aop:pointcut id="daoPointcut" expression="execution(* *..dao.*.*(..))" />
<aop:before pointcut-ref="daoPointcut" method="before" />
<aop:after-returning pointcut-ref="daoPointcut" method="afterReturning" returning="ret" />
<aop:after-throwing pointcut-ref="daoPointcut" method="afterThrowing" throwing="ex" />
</aop:aspect>
<aop:aspect ref="logAspect">
<aop:pointcut id="servicePointcut" expression="execution(* *..service.*.*(..))" />
<aop:before pointcut-ref="servicePointcut" method="before" />
<aop:after-returning pointcut-ref="servicePointcut" method="afterReturning" returning="ret" />
<aop:after-throwing pointcut-ref="servicePointcut" method="afterThrowing" throwing="ex" />
</aop:aspect>
</aop:config>
'Dev > Spring' 카테고리의 다른 글
LogAspect (0) | 2013.12.11 |
---|---|
Spring AOP Pointcut expression (0) | 2013.12.11 |
Spring AOP LoggingAdvice (0) | 2013.11.29 |
REQUIRED, REQUIRES_NEW (0) | 2013.07.18 |
spring jar download (0) | 2013.07.09 |