![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 76
指陆为码
只要学不死 就往死里学
展开
-
SpringAOP是啥,怎么用?
SpringAOP是啥,怎么用?一、面试问题:什么是SpringAOP?SpringAOP的全称是(Aspect Oriented Programming)中文翻译过来是面向切面编程,个人理解:主要意思是我们的传统架构至上而下,后期想要从中间切入写代码添加功能,比如日志、权限、事务等,这时候我们就需要写使用代理模式写,而springaop就是专门把这一块写代码的地方给抽象了出来称为切面,从而解决的代码混乱的问题,它的底层实现也是基于代理模式(动态代理)完成的。二、SpringAOP的应用场景有原创 2020-12-26 13:46:44 · 197607 阅读 · 0 评论 -
SpringAOP切点表达式
SpringAOP切点表达式切点表达式(aop最难部分)execution(常用)描述力度:描述具体到方法、参数、类型举个栗子:@Pointcut("execution(* com.llds.seek.SeekAspect.*.*(..))")public void s(){}execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) t原创 2020-12-25 21:18:58 · 192161 阅读 · 0 评论