Spring's IOC and DI

https://blog.csdn.net/fuzhongmin05/article/details/55802816

 

(1) IOC: Inversion of control, hand over object creation to spring for configuration

(2) DI: Dependency injection, setting values ​​​​to properties in the class

(3) Relationship: Dependency injection cannot exist alone, and operations need to be completed on the basis of IOC

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325097540&siteId=291194637
Recommended