我是靠谱客的博主 潇洒海燕,这篇文章主要介绍Springboot配置redis时无法加载JedisPoolConfig解决办法,现在分享给大家,希望可以做个参考。

JedisPoolConfig一直处于标红状态,无法进行加载,很简单是jar包或者依赖注入的问题,但是在百度上找了半天没找到合适的解决办法,最后在谷歌上面找到了希望:

https://stackoverflow.com/questions/22704518/jedispoolconfig-is-not-assignable-to-genericobjectpoolconfig

<properties>
<spring.data.redis>1.2.1.RELEASE</spring.data.redis>
<jedis>2.4.2</jedis>
</properties>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>${spring.data.redis}</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis}</version>
</dependency>

最后

以上就是潇洒海燕最近收集整理的关于Springboot配置redis时无法加载JedisPoolConfig解决办法的全部内容,更多相关Springboot配置redis时无法加载JedisPoolConfig解决办法内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(79)

评论列表共有 0 条评论

立即
投稿
返回
顶部