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"] [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"> <bean id="person" class="org.springframework.beans.TestBean" scope="prototype">
<property name="age" value="10"/> <property name="age" value="10"/>
<property name="spouse"> <property name="spouse">
@ -252,7 +252,7 @@ The following example shows a path being used against another bean, by name:
</property> </property>
</bean> </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" <bean id="theAge"
class="org.springframework.beans.factory.config.PropertyPathFactoryBean"> class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
<property name="targetBeanName" value="person"/> <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] [source,xml,indent=0]
[subs="verbatim,quotes"] [subs="verbatim,quotes"]
---- ----
<-- from the file 'beans.xml' --> <!-- from the file 'beans.xml' -->
<beans> <beans>
<lang:groovy id="calculator" script-source="classpath:calculator.groovy"/> <lang:groovy id="calculator" script-source="classpath:calculator.groovy"/>
</beans> </beans>