Spring Boot Logger Aspects

前端 未结 1 1612
南笙
南笙 2021-02-05 11:51

I\'m having problems getting my logging aspect to log information when methods from classes of a particular package are accessed. In other words, \"no\" logging occurs. I even

相关标签:
1条回答
  • 2021-02-05 12:30

    Your point cut, execution( * org.my.package.*.*(..)), is only matching the execution of methods on classes in the org.my.packagepackage not sub packages.

    What you probably want is execution( * org.my.package..*.*(..)) notice the .. instead of ..

    0 讨论(0)
提交回复
热议问题