Fix comment syntax in xml examples

See gh-25537
This commit is contained in:
diguage 2020-08-06 09:16:08 +08:00 committed by Sam Brannen
parent b6842730f7
commit 0501999e43
2 changed files with 3 additions and 3 deletions

View File

@ -242,7 +242,7 @@ The following example shows a path being used against another bean, by name:
[source,xml,indent=0,subs="verbatim,quotes"]
----
// target bean to be referenced by name
<!-- target bean to be referenced by name -->
<bean id="person" class="org.springframework.beans.TestBean" scope="prototype">
<property name="age" value="10"/>
<property name="spouse">
@ -252,7 +252,7 @@ The following example shows a path being used against another bean, by name:
</property>
</bean>
// results in 11, which is the value of property 'spouse.age' of bean 'person'
<!-- results in 11, which is the value of property 'spouse.age' of bean 'person' -->
<bean id="theAge"
class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
<property name="targetBeanName" value="person"/>

View File

@ -462,7 +462,7 @@ The following bean definition uses the calculator defined in Groovy:
[source,xml,indent=0]
[subs="verbatim,quotes"]
----
<-- from the file 'beans.xml' -->
<!-- from the file 'beans.xml' -->
<beans>
<lang:groovy id="calculator" script-source="classpath:calculator.groovy"/>
</beans>