@Aspect 的异常,求助
宅男小何 2011-12-09 08:37:03
@Service(value="testAfterLoggerAdvice")
public class TestAfterLoggerAdvice{
public void after(JoinPoint point) {
System.out.println("methodName="+point.getSignature().getName());
System.out.println("target="+point.getTarget().getClass().getName());
}
}
<aop:config>
<aop:aspect ref="testAfterLoggerAdvice" order="0" id="testAfterLoggerAspect">
<aop:pointcut expression="execution(* test.service.impl.testServiceImpl.*(..))" id="testServicePointcut"/>
<aop:after method="after" pointcut-ref="testServicePointcut"/>
</aop:aspect>
</aop:config>