Question - What are the limitations with auto wiring?
Answer -
Following are some of the limitations you might face with auto wiring:
- Overriding possibility: You can always specify dependencies using and settings which will override autowiring.
- Primitive data type: Simple properties such as primitives, Strings and Classes can’t be autowired.
- Confusing nature: Always prefer using explicit wiring because autowiring is less precise.