Spring boot 每个版本集成redis都不同 在此记录Spring boot 集成redis
创建一个 RedisConfig 类 并初始化RedisTemplate
创建RedisService 类
maven 依赖
完成!