You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/data/nosql.adoc
+14-14
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,24 @@ TIP: We also provide a `spring-boot-starter-data-redis-reactive` "`Starter`" for
34
34
[[data.nosql.redis.connecting]]
35
35
==== Connecting to Redis
36
36
You can inject an auto-configured `RedisConnectionFactory`, `StringRedisTemplate`, or vanilla `RedisTemplate` instance as you would any other Spring Bean.
37
-
By default, the instance tries to connect to a Redis server at `localhost:6379`.
38
37
The following listing shows an example of such a bean:
39
38
40
39
include::code:MyBean[]
41
40
41
+
By default, the instance tries to connect to a Redis server at `localhost:6379`.
42
+
You can specify custom connection details using `spring.redis.*` properties, as shown in the following example:
0 commit comments