spring 在实际项目应用中都会用aop做些什么工作,这些工作是通过哪些点实现的,具体的作用是啥。
spring的处理流程是什么样子。
本人正在学习spring的aop 感觉好迷茫。在ssh实际的开发没发现有用到aop的迹象。
最好能有实例。

解决方案 »

  1.   

    这个虽然是AOP,但是不是用spring的AOP哦,struts2拦截器做的事,当然struts2拦截器的思想也是AOP
      

  2.   

    这个倒也是  我看到过的也是关于事物方面的。事物管理跟AOP 有什么关系吗?
      

  3.   

    举个例子给你<aop:config>
    <aop:pointcut id="bussinessService"
    expression="execution(public * com.honglin.service..*.*(..))" />
    <aop:advisor pointcut-ref="bussinessService"
    advice-ref="txAdvice" />
    </aop:config> <tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:attributes>
    <tx:method name="find*" read-only="true" />
    <tx:method name="add*" propagation="REQUIRED"/>
    </tx:attributes>
    </tx:advice>
    这个就是事物和AOP 的关系