Short answer: Injection Dependency is a design pattern, and @autowired is a mechanism for its implementation.
DI , , , (, ), - - , setter. autwire, . Spring , , setter, .
2, . XML . , .
Source: https://habr.com/ru/post/1621515/More articles:Expected unqualified identifier before 'nullptr - c ++Reload the same file - rDuplicate lines generated in .manifest file - .netSIGTERM does not reach the node script when the docker launches it with `/ bin / sh -c` - linuxDeploying COM Components with ClickOnce - c #Invariant violation when using Link component in dynamic menu - reactjsApi Gateway or No Api Gateway - microservicesSort an array in ascending order - javascriptfigure.add_subplot () vs pyplot.subplot () - pythonHow to use string.format with nested dict - pythonAll Articles