What are the possible AOP use cases?

前端 未结 11 2055
孤街浪徒
孤街浪徒 2020-12-23 16:27

I\'d like to make a picture of what are the possible cases for effective involvement of AOP in application design. All I have met so far is:

  • logging-related
11条回答
  •  臣服心动
    2020-12-23 16:56

    I will also recommend aspects for:

    • Async method calls
    • Monitoring

    With Spring and tcServer (developer), you can easily monitor all your Spring beans with @Component annotation. You can see time used, the input and return data including exceptions.

提交回复
热议问题