<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<context:component-scan base-package="com.myspring.biz"/>
<!-- AOP 설정 -->
<aop:config>
<aop:pointcut id="boardPointcut"
expression="execution(* com.mypring.biz..*Impl.*(..))"/>
<aop:aspect ref="log">
<aop:before pointcut-ref="boardPointcut"
method="printLog"/>
</aop:aspect>
</aop:config>
댓글 없음:
댓글 쓰기