@AspectJ pointcut for all methods inside package

前端 未结 3 1816
悲&欢浪女
悲&欢浪女 2021-02-01 15:45

I have this working code for a specific package, but i want to configure it for all controllers, service and dao packages Eg

3条回答
  •  粉色の甜心
    2021-02-01 16:18

    Another alternative is to use

    @Pointcut("bean(*Controller)")
    

    But naming of your beans should be corresponding

提交回复
热议问题