Skip to content

Commit 01b2e61

Browse files
sdavidsmp911de
authored andcommitted
Update reference documentation with examples that match @EnableMapRepositories.
Closes #358 Original pull request: #364.
1 parent 715cbcd commit 01b2e61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/asciidoc/key-value-repositories.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can use a different type or preinitialize the adapter with some values, and
5151
[source, java]
5252
----
5353
@Bean
54-
public KeyValueOperations keyValueTemplate() {
54+
public KeyValueOperations mapKeyValueTemplate() {
5555
return new KeyValueTemplate(keyValueAdapter());
5656
}
5757
@@ -61,6 +61,8 @@ public KeyValueAdapter keyValueAdapter() {
6161
}
6262
----
6363

64+
Alternatively, you might use `@EnableMapRepositories(keyValueTemplateRef=…)`.
65+
6466
[[key-value.keyspaces]]
6567
== Keyspaces
6668

0 commit comments

Comments
 (0)