liveBook · Manning

Autowiring

Autowiring is Spring’s technique of automatically resolving and injecting dependencies into managed beans.

How 2 Manning books explain it

Spring Start Here, Second Edition

Autowiring is the technique of having Spring automatically resolve and establish dependencies among managed beans.

How it is used
Connects managed beans by having Spring provide dependencies instead of requiring manual bean retrieval.
How deep it goes
Explains bean registration and dependency linking with small examples, without detailing resolution internals.
Examples
Uses a Person–Parrot relationship and a CommentService with repository and notification dependencies.
What you can do after
Apply it by letting Spring supply bean references through constructor, field, setter, or @Bean method parameters.

Read how Spring Start Here, Second Edition explains autowiring →

Spring in Action, Sixth Edition

A Spring technique that automatically supplies a bean with other beans matching its dependencies.

How it is used
Connects Spring-managed components by injecting beans into their dependencies, reducing explicit configuration.
How deep it goes
Defines dependency injection and relates it to component scanning, but stops short of showing autowiring implementation details.
Examples
Uses a component-injection diagram alongside XML and Java bean-configuration examples.
What you can do after
Apply it via Spring by recognizing how discovered components receive their bean dependencies automatically.

Read how Spring in Action, Sixth Edition explains autowiring →

Related concepts

Questions about autowiring

What is autowiring?

Autowiring is Spring’s technique of automatically resolving and injecting dependencies into managed beans.

Which Manning books explain autowiring?

Spring Start Here, Second Edition and Spring in Action, Sixth Edition.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.