Skip to content

Commit

Permalink
docs spring-guides#26: Add Spring Boot docs about Redis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangwt-cn committed Oct 18, 2023
1 parent 08dd6be commit e8e200d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,32 @@ NOTE: You can also fork the project from Github and open it in your IDE or other

== Create a Redis Message Receiver

Redis configuration two file formats

- properties
====
[source,text]
----
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.password=123456
spring.redis.database=0
----
====

- yaml
====
[source,yaml]
----
spring:
redis:
host: localhost
port: 6379
password: 123456
database: 0
----
====

In any messaging-based application, there are message publishers and messaging receivers.
To create the message receiver, implement a receiver with a method to respond to messages,
as the following example (from `src/main/java/com/example/messagingredis/Receiver.java`)
Expand Down

0 comments on commit e8e200d

Please sign in to comment.