2020
10-10
10-10
SpringBoot中使用Redis的完整实例
一.在SpringBoot中使用Redis的一套军体拳1.导包<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId><version>2.2.0.RELEASE</version></dependency>2.导入工具类packagecom.cbsd.util;importjava.util.concurrent.TimeUnit;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.data.redis.core.HashOperations;impor...
继续阅读 >