摘要: 参考实验楼:https://www.shiyanlou.com/courses/100/labs/863/document 1 什么是设计模式 在软件工程中,设计模式是对软件设计中普遍存在的各种问题,所提出的 解决方案。 换句话说,设计模式是一套被反复使用、多数人知晓的、经过分类的、代码设计的 经验 阅读全文
posted @ 2017-03-15 14:39 Zoey Chou 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 在 Spring AOP 中,有 3 个常用的概念,Advices 、 Pointcut 、 Advisor ,解释如下: Advices :表示一个 method 执行前或执行后的动作。 Pointcut :表示根据 method 的名字或者正则表达式去拦截一个 method 。 Advisor 阅读全文
posted @ 2017-03-15 14:15 Zoey Chou 阅读(876) 评论(0) 推荐(0) 编辑
摘要: Spring AOP 即 Aspect-oriented programming,面向切面编程,是作为面向对象编程的一种补充,专门用于处理系统中分布于各个模块(不同方法)中的交叉关注点的问题。简单地说,就是一个拦截器( interceptor )拦截一些处理过程。 例如,当一 个method 被执行 阅读全文
posted @ 2017-03-15 12:43 Zoey Chou 阅读(5381) 评论(1) 推荐(1) 编辑