@Autowired

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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")