009_Redis_RedisTemplate入门
1、创建一个springboot项目
springboot注入依赖优点慢呀!困了😴,有好心人知道创建springboot怎么样才能使导入依赖快一点呀!!!!!!求告知!
写一下配置文件。
spring:
redis:
host: 10.223.31.215
port: 6379
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
max-wait: 100ms
编写测试类
package com.ym.redisdemo;
import lombok.val;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data