Spring Dependency Injection and Inversion of Control Container Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
'''Java-based Configuration''' (@Configuration). Annotation injection is performed before XML injection, thus the XML configuration overrides the annotations for properties wired through both approaches. | '''Java-based Configuration''' (@Configuration). Annotation injection is performed before XML injection, thus the XML configuration overrides the annotations for properties wired through both approaches. | ||
Configuration time. <font color=darkgray>Define what that is.</font> | |||
Component scanning. | Component scanning. |
Revision as of 16:36, 8 October 2018
Internal
Overview
At the heart of the Spring Framework are the modules that implement the core container, including a configuration model and a dependency injection mechanism. Support for different application architectures, including messaging, transactions and persistence is built in top of the core container.
Inversion of Control Container
Configuration Model
XML-based Configuration
Java-based Configuration (@Configuration). Annotation injection is performed before XML injection, thus the XML configuration overrides the annotations for properties wired through both approaches.
Configuration time. Define what that is.
Component scanning.
Autowiring.
Automatic configuration (Spring Boot autoconfiguration).
Dependency Injection
Application Context
Beans
Collaborator beans