首先,aop是面向对象切面,嗯,就是说不面向静态方法,我做测试demo的时候controller方法有个加了static,尴尬的是就用了那个方法测,检查了几遍配置。。。

 

参看这篇文章https://my.oschina.net/zhangxufeng/blog/1824275

 

spring boot之AOP

要有五个部分组成

modifier-pattern? 修饰符public、private…
ret-type-pattern 返回值
declaring-type-pattern? 描述包名
name-pattern(param-pattern) 方法名(方法参数)
throws-pattern 匹配方法抛出的异常
其中 ?标注的是可以省略
---------------------
作者:面具下的泪痕
来源:CSDN
原文:https://blog.csdn.net/qq_34426004/article/details/82414375
版权声明:本文为博主原创文章,转载请附上博文链接!

 

如上对excution有比较详细直观的说明

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-10-02
  • 2021-09-20
  • 2021-12-15
猜你喜欢
  • 2021-09-21
  • 2022-01-13
  • 2022-01-02
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案