Browse Source

Merge pull request #25537 from diguage

* pr/25537:
  Fix comment syntax in xml examples

Closes gh-25537
pull/25540/head
Stephane Nicoll 6 years ago
parent
commit
c7b74c4358
  1. 4
      src/docs/asciidoc/core/core-appendix.adoc
  2. 2
      src/docs/asciidoc/languages/dynamic-languages.adoc

4
src/docs/asciidoc/core/core-appendix.adoc

@ -242,7 +242,7 @@ The following example shows a path being used against another bean, by name: @@ -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: @@ -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"/>

2
src/docs/asciidoc/languages/dynamic-languages.adoc

@ -462,7 +462,7 @@ The following bean definition uses the calculator defined in Groovy: @@ -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>

Loading…
Cancel
Save