What are inner beans in Spring?

Technology Community › Category: Spring › What are inner beans in Spring?
VietMX Staff asked 5 years ago

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.