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.
Read: Auto wiring in Spring
No comments:
Post a Comment