<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" />
在页面上直接报错,没有错误信息,控制台没有输出请高手鉴定下。
<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" />
在页面上直接报错,没有错误信息,控制台没有输出请高手鉴定下。
在页面端就提示error,其他没有
cn.huatour.service.contentService.impl.*.*insert*(..)这个方法他就没有进,这个方法第一行就是输出,没有
<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>