1.

What Are The Limitations With Autowiring?

Answer»

Limitations of autowiring are:

Overriding possibility: You can still specify dependencies using &LT;constructor-arg> and <property> settings which will ALWAYS OVERRIDE autowiring.

Primitive data types: You cannot autowire so-called simple properties such as PRIMITIVES, Strings, and Classes.

Confusing nature: Autowiring is LESS exact than explicit wiring, so if possible prefer using explicit wiring.

Limitations of autowiring are:

Overriding possibility: You can still specify dependencies using <constructor-arg> and <property> settings which will always override autowiring.

Primitive data types: You cannot autowire so-called simple properties such as primitives, Strings, and Classes.

Confusing nature: Autowiring is less exact than explicit wiring, so if possible prefer using explicit wiring.



Discussion

No Comment Found