1.

What Are Inner Beans In Spring?

Answer»

A <bean/> element inside the <property/> or <constructor-arg/> elements defines a so-called inner bean. An inner bean definition does not require a defined id or name; the CONTAINER ignores these values. It also ignores the SCOPE FLAG. Inner BEANS are always anonymous and they are always scoped as prototypes.

A <bean/> element inside the <property/> or <constructor-arg/> elements defines a so-called inner bean. An inner bean definition does not require a defined id or name; the container ignores these values. It also ignores the scope flag. Inner beans are always anonymous and they are always scoped as prototypes.



Discussion

No Comment Found