<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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.