Difference between Spring IOC and Spring AOP

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

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

3条回答
  •  死守一世寂寞
    2021-02-15 23:15

    Objective of Spring IOC is to reduce explicit dependencies between components, while purpose of Spring AOP is to wire components together possibly by enforcing certain common behavior (read: NOT Interface)

    Since purpose of Spring AOP is to enforce certain behavior across components.So, Spring IOC comes in handy to achieve this purpose

提交回复
热议问题