@Autowired: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 18: Line 18:


<font color=darkgray>@Autowired can be used to inject [[Spring_Persistence_Concepts#DataSource|DataSources]], ...</font>
<font color=darkgray>@Autowired can be used to inject [[Spring_Persistence_Concepts#DataSource|DataSources]], ...</font>
=Autowiring a Bean by Name=
<font color=darkgreen>TODO</font>
<syntaxhighlight lang='java'>
@Autowired
@Qualifier("myBean")
</syntaxhighlight>

Latest revision as of 21:53, 14 November 2018

External

Internal

Dependency

dependencies {
    implementation('org.springframework:spring-beans')
}

Overview

@Autowired can be used to inject DataSources, ...

Autowiring a Bean by Name

TODO

@Autowired
@Qualifier("myBean")