Spring Boot系列之redis
1、在spring boot 项目中,添加redis依赖。<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency>

3、在application.propoties文件中添加redis配置参数。host、port、连接池等相关配置。host使用本地redis服务。

5、编写测试用例。添加junit依赖,<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId></dependency>使用RedisTemplate,StringRedisTemplate测试。可存储string/object等数据类型。
