A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
spring autowiring by name
Joined: Apr 19, 2008
Jun 22, 2010 11:39:57
iam beginner to spring,iam unable to understand spring autowiring by name can any one give example program on it.
Joined: Sep 29, 2008
Jun 22, 2010 17:52:16
Give a bean an id, call it "foo".
Give another bean "bar" a property called "foo". Create a "bar", its "foo" property will be injected with the implementation defined in the "foo" bean.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: spring autowiring by name
Interface injection in Spring
Spring DI Vs Spring Autowiring
spring constructor autowiring
Does annotation autowiring violates Java’s encapsulation?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015