October 2018
Intermediate to advanced
590 pages
15h 5m
English
To wire up dependencies, we can use these two annotations provided by Spring—the @Required annotation and the @Autowired annotation. We can apply the @Required annotation to setter methods and the @Autowired annotation to constructor, methods, as well as fields.
To sum up, in Spring, there are three ways to inject dependencies:
Read now
Unlock full access