2021
09-07
09-07
springAOP中用joinpoint获取切入点方法的参数操作
springAOPjoinpoint获取切入点方法的参数概念:访问目标方法即用jointpoint(@around用poceedingjointpoint)1.获取他们的目标对象信息,如test.component@80387a这种2.还有获取带参方法的参数,如[Ljava.lang.Object;@183cfe9(想当然我们也可以用对象的arrays.toString()方法将其还原)3.另外还有获取被增强的方法相关信息如Stringtest.component.test1(String)这种总结:访问目标方法参数,有三种方法(实际有四种,先说三种)joinp...
继续阅读 >