Aspect for method annotated with annotation which are annotated with another annotation

后端 未结 1 926
清歌不尽
清歌不尽 2021-01-24 17:05

Is it possible to make pointcut using Spring AOP for methods and type having annotation which was annotated with some annotation. Here\'s my custom annotation:

@         


        
相关标签:
1条回答
  • 2021-01-24 17:36

    I found solution.

    I made such pointcut:

     within(@(@test.security.access.AccessRestriction *) *) ||
     execution(@(@test.security.access.AccessRestriction *) * *(..))
    
    0 讨论(0)
提交回复
热议问题