SpringBoot连接Redis
作者:互联网
依赖
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.6.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
配置redis的IP地址和端口号
redis:
host: ip地址
port: 6379
标签:SpringBoot,boot,redis,commons,ip,org,Redis,连接,端口号 来源: https://www.cnblogs.com/xueliandiyu/p/16143005.html