Fix XML code snippet

See gh-34148
This commit is contained in:
Brenden Ehlers
2024-12-24 07:49:24 -07:00
committed by Sébastien Deleuze
parent ea386c2398
commit eabd574038

View File

@@ -169,7 +169,8 @@ listings shows how to use the `parent` attribute:
[source,xml,indent=0,subs="verbatim,quotes"]
----
<!-- in the child (descendant) context -->
<bean id="accountService" <!-- bean name is the same as the parent bean -->
<!-- bean name is the same as the parent bean -->
<bean id="accountService"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<ref parent="accountService"/> <!-- notice how we refer to the parent bean -->