后通知怎么实现
解决方案 »
- 小弟我来问个自定义标签的问题
- java poi读取excel
- 大量数据写入到xml文件中?
- HttpRequest与HttpservletRequest有什么区别
- Struts中的RequestProcessor使用
- 求救!!为什么在struts中删除记录老是删除到最后一个
- j2ee开发必备资料盘!
- weblogic配置连接池的问题,解决了一定给分!!
- 十万火急---JSTL怎样动态引用XML文件--在线急等,马上结帐
- Eclipse开发web时,build path的问题。。。。
- jboss中的avax.naming.NameNotFoundException
- ssh 问题 晕 看了好久 都找不到 大家帮帮忙
<!-- 定义切入点 -->???怎么写?
<!-- 关于事务边界的设置,通常设置到业务层 -->
<!-- 指定具体的包的路径 ........ -->
<aop:pointcut id="myPointCut" expression="execution(* com.vance.service.impl.*.*(..))"/>
<!-- 定义通知位置 -->
<aop:advisor advice-ref="myAdvice" pointcut-ref="myPointCut"/>
</aop:config>
<aop:aspect id="afterReturningExample" ref="aBean">
<aop:pointcut id="businessService"
expression="execution(* com.xyz.myapp.service.*.*(..))"/> <aop:after-returning
pointcut-ref="dataAccessOperation"
method="doAccessCheck"/>
...
</aop:aspect>
private int count;
public void afterReturning(Object returnValue, Method m, Object[] args, Object target)
throws Throwable {
++count;
}
public int getCount() {
return count;
}
}