SpringBoot整合Jedis

1.导入坐标


    redis.clients
    jedis

不需要版本号,因为springboot-starter中有该坐标对应的版本号了

2.修改yml文件

spring:
  redis:
    host: localhost
    port: 6379
    client-type: jedis

你可能感兴趣的:(spring,boot,java,后端)