Pointcut matching methods with annotated parameters

后端 未结 2 528
醉酒成梦
醉酒成梦 2020-12-05 21:26

I need to create an aspect with a pointcut matching a method if:

  1. it is annoted with MyAnnotationForMethod
  2. One of its parameters (can have many) is ann
2条回答
  •  执念已碎
    2020-12-05 21:41

    The ms.getParameterNames() call in the above solution doesnt seem to work when the method is implemented from an interface. I get back nulls.

    However, if I enable CGLIB, then it works.

    
    

提交回复
热议问题