Allows a property to be autowired if exactly one bean of the property type exists in the container. If more than one exists, a fatal exception is thrown, which indicates that you may not use byType autowiring for that bean. If there are no matching beans, nothing happens; the property is not set. If this is not desirable, setting the dependency-check="objects" attribute value specifies that an error should be thrown in this case.
Mark Spritzler wrote:Is your setter method called setMother?
Mark Spritzler wrote:Can you post the code?
Mark Spritzler wrote:btw. I think it is so cool Jeanne that you are learning Spring, and hopefully means you can get away from Websphere and EJBs. ;)
Mark Spritzler wrote:I've duplicated your findings and it looks like you found an undocumented feature.