мои свойства:
spring.data.mongodb.uri=mongodb://localhost:27017/apitest
spring.jackson.time-zone=GMT+8
spring.redis.host=localhost
spring.redis.database=1
spring.redis.port=6379
spring.session.store-type=redis
my pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
когда я запускаю свое приложение, я нахожу, что моя база данных redis всегда равна 0, как перейти на 1?