springboot学习之三(整个redis)

发布时间 2023-04-13 16:52:17作者: 与f

 

springboot整合redis

1.依赖

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>

2.配置

# Redis 配置
spring.redis.host=localhost
spring.redis.port=6379
...其他设置

 

 

 

 

 

 

 

https://www.cnblogs.com/fps2tao/p/13824958.html