Skip to content

Commit ae3225e

Browse files
committed
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
1 parent de53a24 commit ae3225e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,8 +3081,9 @@ normal in a Spring Boot application (you normally only have one application cont
30813081
=== Use Lettuce instead of Jedis
30823082
The Spring Boot starter (`spring-boot-starter-data-redis`) uses
30833083
https://github.com/xetorthio/jedis/[Jedis] by default. You need to exclude that dependency
3084-
and include the https://github.com/lettuce-io/lettuce-core/[Lettuce] one instead. Spring
3085-
Boot manages that dependency to help make this process as easy as possible.
3084+
and include the https://github.com/lettuce-io/lettuce-core/[Lettuce] one instead. You also
3085+
need `commons-pool2`. Spring Boot manages these dependencies to help make this process as
3086+
easy as possible.
30863087

30873088
Example in Maven:
30883089

@@ -3102,6 +3103,10 @@ Example in Maven:
31023103
<groupId>io.lettuce</groupId>
31033104
<artifactId>lettuce-core</artifactId>
31043105
</dependency>
3106+
<dependency>
3107+
<groupId>org.apache.commons</groupId>
3108+
<artifactId>commons-pool2</artifactId>
3109+
</dependency>
31053110
----
31063111

31073112
Example in Gradle:
@@ -3113,7 +3118,8 @@ Example in Gradle:
31133118
}
31143119
31153120
dependencies {
3116-
compile("io.lettuce:lettuce-core:{lettuce.version}")
3121+
compile("io.lettuce:lettuce-core")
3122+
compile("org.apache.commons:commons-pool2")
31173123
// ...
31183124
}
31193125
----

0 commit comments

Comments
 (0)