1.下载安装redis
https://blog.csdn.net/qq_42014192/article/details/88838597
2.新建一个springboot项目
https://blog.csdn.net/qq_42014192/article/details/88742559
3.添加redis相关依赖
<!--redis-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
4.application.properties文件中配置redis
# Red