AspectJ pointcut expression match parameter annotations at any position

后端 未结 2 949
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 05:10

I\'m trying to define a pointcut expression to match methods which contain a parameter annotated with a specific annotation, regardless of what position the parameter is in.

2条回答
  •  情深已故
    2020-12-06 05:57

    I think you want execution(public * *.*(.., @com.example.Constraint *, ..), modulo some syntax.

提交回复
热议问题