Difference between Spring IOC and Spring AOP

前端 未结 2 792
忘掉有多难
忘掉有多难 2021-02-15 22:36

What is the Difference between Spring IOC and Spring AOP and their Importance ?

2条回答
  •  滥情空心
    2021-02-15 23:29

    Have you searched the web for IoC and AOP? There are a lot of references to both.

    In a nutshell, IoC allows an external force to determine what implementation will be used by code rather than the code determining the implementation. The "external force" might be a configuration file, a unit test, other different code, etc.

    AOP allows cross-cutting concerns to be implemented outside of the code affected by those concerns.

    The "purpose" of Spring includes IoC and AOP, but goes quite a ways beyond that in its scope.

    For more details please check.

    Inversion of Control Containers and the Dependency Injection pattern and Aspect-oriented programming Also check this

    What is AOP, Dependency Injection and Inversion Of Control in Simple English

    IoC, AOP and more

提交回复
热议问题