zoukankan      html  css  js  c++  java
  • Spring AOP

    SpringAOP 和 AspectJ 的关系:
    它们是两种不同的编程风格, SpringAOP 使用 xml 配置的形式配置 aop。而 AspectJ 使用 AspectJ 的注解来配置 aop

    aspect、JoinPoint、Pointcut、Weaving、Advice
    JoinPoint: 连接点。表示目标对象中的方法
    Pointcut: 切点。表示连接点的集合
    Weaving: 织入。把代理逻辑加入到目标对象上的过程叫织入
    Advice: 通知。包括 “around”, “before” and “after 等


    this、target
    this: 产生的代理对象
    target: 被代理的原始对象

    JoinPoint、ProceedingJoinPoint
    JoinPoint 接口可以拿到连接点的相关信息,比如:方法签名、方法参数、this、target
    ProceedingJoinPoint 继承自 JoinPoint,它是用来支持环绕(around)通知的,多暴露了一个 proceed() 方法,用来执行目标对象的方法。

  • 相关阅读:
    跨域上传文件
    算法
    websocket
    Bottle
    爬虫一
    RabbitMQ
    git&github快速入门
    centos6安装SaltStack
    ajax
    Django之Model操作
  • 原文地址:https://www.cnblogs.com/kevin-yuan/p/12264747.html
Copyright © 2011-2022 走看看