<aop:config>
<aop:aspect id="powerAspect" ref="power">
<!-- 定义一个Around增强处理,直接指定切入点表达式
以切面Bean中的invoke()方法作为增强处理方法 -->
<aop:around
pointcut="execution(* cn.huatour.service.contentService.impl.*.*insert*(..))"
method="invoke" />
</aop:aspect>
</aop:config>
<!-- 配置拦截器 -->
<bean id="power" class="cn.huatour.powercheck.InsertPower" />
在页面上直接报错,没有错误信息,控制台没有输出请高手鉴定下。

解决方案 »

  1.   

    页面上报错你怎么知道是spring的问题?
      

  2.   

    我用的是DWR+HIBERNATE+SPRING
    在页面端就提示error,其他没有
    cn.huatour.service.contentService.impl.*.*insert*(..)这个方法他就没有进,这个方法第一行就是输出,没有
      

  3.   

    加了,但是也没有用<bean id="powertest" class="cn.huatour.powercheck.InsertPower"></bean> <aop:config>
    <aop:aspect ref="powertest">
    <aop:pointcut id="test"
    expression="execution(* cn.huatour.service.contentService.impl.ContentServiceImpl.*(..))" />
    <aop:around method="dobefore" pointcut-ref="test" />
    </aop:aspect>
    </aop:config>
      

  4.   

    直觉告诉我 你差一个bean 那就是target bean!