Dependency Injection in Spring

From OasisSoftTech.com - Knowledge Base/Java/Springframework/Microservices/Cloud-AWS/AI
Revision as of 04:22, 3 June 2018 by Rasimsen (talk | contribs) (Created page with "To set the item attribute in the example above, we can use metadata. Then, the container will read this metadata and use it to assemble beans at runtime. Dependency Injection...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To set the item attribute in the example above, we can use metadata. Then, the container will read this metadata and use it to assemble beans at runtime.

Dependency Injection in Spring can be done through constructors, setters or fields.