From 01b2e6157d8c8765c81ad7cd0a565d80f3a47af1 Mon Sep 17 00:00:00 2001 From: Sebastian Davids Date: Thu, 18 Mar 2021 14:30:17 +0100 Subject: [PATCH] Update reference documentation with examples that match @EnableMapRepositories. Closes #358 Original pull request: #364. --- src/main/asciidoc/key-value-repositories.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/key-value-repositories.adoc b/src/main/asciidoc/key-value-repositories.adoc index bd51511..9b20b9f 100644 --- a/src/main/asciidoc/key-value-repositories.adoc +++ b/src/main/asciidoc/key-value-repositories.adoc @@ -51,7 +51,7 @@ You can use a different type or preinitialize the adapter with some values, and [source, java] ---- @Bean -public KeyValueOperations keyValueTemplate() { +public KeyValueOperations mapKeyValueTemplate() { return new KeyValueTemplate(keyValueAdapter()); } @@ -61,6 +61,8 @@ public KeyValueAdapter keyValueAdapter() { } ---- +Alternatively, you might use `@EnableMapRepositories(keyValueTemplateRef=…)`. + [[key-value.keyspaces]] == Keyspaces