Difference between Spring IOC and Spring AOP

前端 未结 3 941
一向
一向 2021-02-15 22:45

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

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-15 23:27

    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

提交回复
热议问题