From ae3225e76e6f5e7d7680bfd9b5cca9da13a6efbc Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 4 May 2017 14:03:50 +0200 Subject: [PATCH] Mention that Lettuce requires commons-pool2 We intend to remove this limitation in a future milestone but as the Lettuce auto-configuration requires `commons-pool2`, this commit updates the How-To to mention that. See gh-9091 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 46b8627de39..2e9ad17e71d 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -3081,8 +3081,9 @@ normal in a Spring Boot application (you normally only have one application cont === Use Lettuce instead of Jedis The Spring Boot starter (`spring-boot-starter-data-redis`) uses https://github.com/xetorthio/jedis/[Jedis] by default. You need to exclude that dependency -and include the https://github.com/lettuce-io/lettuce-core/[Lettuce] one instead. Spring -Boot manages that dependency to help make this process as easy as possible. +and include the https://github.com/lettuce-io/lettuce-core/[Lettuce] one instead. You also +need `commons-pool2`. Spring Boot manages these dependencies to help make this process as +easy as possible. Example in Maven: @@ -3102,6 +3103,10 @@ Example in Maven: io.lettuce lettuce-core + + org.apache.commons + commons-pool2 + ---- Example in Gradle: @@ -3113,7 +3118,8 @@ Example in Gradle: } dependencies { - compile("io.lettuce:lettuce-core:{lettuce.version}") + compile("io.lettuce:lettuce-core") + compile("org.apache.commons:commons-pool2") // ... } ----