<beans profile='spring'>    <bean id="aaa" class="com.apress.springrecipes.shop.Battery">        <property name="name" value="AAA" />        <property name="price" value="2.5" />    </bean>    <bean id="cdrw" class="com.apress.springrecipes.shop.Disc">        <property name="name" value="CD-RW" />        <property name="price" value="1.5" /></beans><beans profile='summer,winter'>    <bean id="aaa" class="com.apress.springrecipes.shop.Battery">        <property name="name" value="AAA" />        <property name="price" value="2.0" />    </bean>    <bean id="cdrw" class="com.apress.springrecipes.shop.Disc">        <property name="name" value="CD-RW" />        <property name="price" value="1.0" /></beans>

Notice how the <beans> tags are nested to delimit ...

Get Spring Recipes: A Problem-Solution Approach, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.