四个类:           com.jxcia.fes.system.simple.service.impl.SimpleServiceImpl
           com.jxcia.fes.system.menu.service.impl.MenuServiceImpl
           com.jxcia.fes.hr.employee.service.impl.EmployeeServiceImpl
           com.jxcia.framework.module.resoue.service.impl.ResourceServiceImpl
Spring AOP pointcut 配置<aop:config>
<aop:advisor advice-ref="txAdvice" pointcut="execution(* com.jxcia..service..*.*(..))" />
</aop:config>
请问这样配置是否正确,不争取应该怎么配置?

解决方案 »

  1.   

    请看这里:
    http://blog.csdn.net/dqsweet/article/details/7165958
      

  2.   

    <bean id="aspbean" class="com.test.service.MyInterceptor"/>
    <aop:config>
             <aop:aspect id="asp" ref="aspbean">
             <aop:pointcut id="mycut" expression="execution(* cn.itcast.service..*.*(..))"/>
             <aop:before pointcut-ref="mycut" method="execute"/>
             </aop:aspect>
    </aop:config>类似这样的配置,楼主网上搜一下,有很多文章的。
      

  3.   

    包路径写完全点咯,可以写到impl啊