摘要:
使用注解写aop时最好使用环绕通知写 切面类: /** * 用于记录日志的工具类,它里面提供了公共的代码 */ @Component("logger") @Aspect //表示当前类是一个切面类 public class Logger { @Pointcut("execution(* cn.fly 阅读全文
摘要:
参考: https://blog.csdn.net/jeffleo/article/details/54136904 一、AOP的核心概念AOP(Aspect Oriented Programming),是面向切面编程的技术。AOP基于IoC基础,是对OOP的有益补充,流行的AOP框架有Sping 阅读全文
摘要:
参考: https://www.zhihu.com/question/24863332 https://zhuanlan.zhihu.com/p/60842627 什么是AOP:(注:Spring Security的拦截是基于Servlet的Filter的,不是aop,不过两者在使用方式上类似) 好 阅读全文