springboot的pom文件加入dependency,结果发现包中的类无法引用
在使用springboot,在pom文件加入jedis的依赖时,程序中无法使用JedisPool
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
解决方法:
在maven的本地仓库中,将redis文件夹删除,然后关闭idea,重启,就可以恢复正常了
在SpringBoot项目中引入Jedis依赖后,出现类无法引用的问题。本文详细描述了如何通过清理Maven本地仓库中的redis文件夹并重启IDEA来解决此问题。
1808

被折叠的 条评论
为什么被折叠?



