Friday 22 May 2015

Java Source World: Limitations of autowiring in Spring Framework


Limitations of autowiring are:

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

Primitive data types: You cannot auto wire so-called simple properties such as primitives, String s, and Classes.

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

No comments:

Post a Comment