Spring / Spring Beans
What are the limitations of autowiring in Spring framework?
-
Overriding: You can still specify dependencies using
and settings which will always override autowiring. - Primitive data types: You cannot autowire simple properties such as primitives.
- Confusing nature: Autowiring is less exact than explicit wiring, so if possible prefer using explicit wiring.
More Related questions...