일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- Windows 10
- VirtualBox
- Windows
- 네트워크
- plugin
- Quartz
- import
- bash
- grep
- profile
- Eclipse
- GIT
- IntelliJ
- maVen
- 단축키
- resource
- find
- vscode
- ssh
- tomcat
- lsof
- 줄바꿈 문자
- netsh
- Mac
- Source
- web.xml
- port
- xargs
- context
- JavaScript
- 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 |