SPR-8256
+ fix small doc typo git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4303 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
f1eaefb4fd
commit
90a0504c5c
|
|
@ -146,7 +146,7 @@ public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed)</pr
|
|||
If <literal>true</literal>, the method is cached - if not, it behaves as if the method is not cached, that is executed every since time no matter what values are in the cache or what
|
||||
arguments are used. A quick example - the following method will be cached, only if the argument <literal>name</literal> has a length shorter then 32:</para>
|
||||
|
||||
<programlisting language="java"><![CDATA[@Cacheable(value="book", condition="name.length < 32")
|
||||
<programlisting language="java"><![CDATA[@Cacheable(value="book", condition="#name.length < 32")
|
||||
public Book findBook(String name)]]></programlisting>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue