结合springboot
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
不结合直接用
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
- https://www.cnblogs.com/zeng1994/p/03303c805731afc9aa9c60dbbd32a323.html
- https://blog.csdn.net/plei_yue/article/details/79362372