What is the difference between concern and cross-cutting concern in Spring AOP?

Technology CommunityCategory: SpringWhat is the difference between concern and cross-cutting concern in Spring AOP?
VietMX Staff asked 3 years ago
  • Concern − Concern is behavior which we want to have in a module of an application. Concern may be defined as a functionality we want to implement. Issues in which we are interested define our concerns.
  • Cross-cutting concern − It’s a concern which is applicable throughout the application and it affects the entire application. e.g. logging , security and data transfer are the concerns which are needed in almost every module of an application, hence are cross-cutting concerns.