springboot的pom文件加入dependency,结果发现包中的类无法引用

springboot的pom文件加入dependency,结果发现包中的类无法引用

在使用springboot,在pom文件加入jedis的依赖时,程序中无法使用JedisPool



    redis.clients
    jedis
    2.9.0

解决方法:
在maven的本地仓库中,将redis文件夹删除,然后关闭idea,重启,就可以恢复正常了

你可能感兴趣的:(springboot)