Skip to content

Doc: Bad snippet for CompositeCacheManager [SPR-9064] #13703

@spring-projects-issues

Description

@spring-projects-issues

Filippo De Luca opened SPR-9064 and commented

The documentation at address: http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/cache.html section 2.8.5.3 contains a snippet with error:

<bean id="cacheManager" class="org.springframework.cache.support.CompositeCacheManager">
   <property name="cacheManagers"><list>
      <ref bean="jdkCache"/>
      <ref bean="gemfireCache"/>
   </list></property>
   <property name="addNoOpCache" value="true"/>
</bean>

Should be:

<bean id="cacheManager" class="org.springframework.cache.support.CompositeCacheManager">
   <property name="cacheManagers"><list>
      <ref bean="jdkCache"/>
      <ref bean="gemfireCache"/>
   </list></property>
   <property name="fallbackToNoOpCache" value="true"/>
</bean>

Affects: 3.1 GA

Referenced from: commits 8422da4, 13cf1fc

Backported to: 3.1.4

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions