What are inner beans in Spring?

Technology CommunityCategory: SpringWhat are inner beans in Spring?
VietMX Staff asked 3 years ago

<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.