jedis —— NoSuchMethodError—— org.springframework.util.Assert.isTrue(ZLjava,util,function,Supplier

本人花费半年的时间总结的《Java面试指南》已拿腾讯等大厂offer,已开源在github ,欢迎star!

本文GitHub https://github.com/OUYANGSIHAI/JavaInterview 已收录,这是我花了6个月总结的一线大厂Java面试总结,本人已拿大厂offer,欢迎star

原文链接:blog.ouyangsihai.cn >> jedis —— NoSuchMethodError—— org.springframework.util.Assert.isTrue(ZLjava,util,function,Supplier


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined
 in class path resource [applicationContext-redis.xml]: Bean instantiation via constructor failed; 
 nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate 
 [org.springframework.data.redis.connection.jedis.JedisConnectionFactory]: Constructor threw exception;
 nested exception is java.lang.NoSuchMethodError: 
    org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'connectionFactory' defined in class path resource [applicationContext-redis.xml]:
 Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException:
 Failed to instantiate [org.springframework.data.redis.connection.jedis.JedisConnectionFactory]: 
 Constructor threw exception; nested exception is java.lang.NoSuchMethodError: 
 org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V

当前jar版本 jedis 2.8.1 spring-data-redis 2.0.5

原因发现是spring-data-redis 版本过高 降低到1.7.2 可以正常运行。

spring-data-redis 2.0以上需要jdk8和spring5以上

原文地址:https://sihai.blog.csdn.net/article/details/85237820

本人花费半年的时间总结的《Java面试指南》已拿腾讯等大厂offer,已开源在github ,欢迎star!

本文GitHub https://github.com/OUYANGSIHAI/JavaInterview 已收录,这是我花了6个月总结的一线大厂Java面试总结,本人已拿大厂offer,欢迎star

原文链接:blog.ouyangsihai.cn >> jedis —— NoSuchMethodError—— org.springframework.util.Assert.isTrue(ZLjava,util,function,Supplier


 上一篇
activiti的processEngine空指针异常 activiti的processEngine空指针异常
当activiti开发中我们出现processEngine不能加载,或者空指针的时候,得注意是不是把这个表中的数据删除了,如果删除了,则会导致activiti配置出错。 原文地址:https://sihai.blog.csdn.net/
2021-04-04
下一篇 
遇到问题——push的时候出现fatal—— Authentication failed for 遇到问题——push的时候出现fatal—— Authentication failed for
GitHub push代码发生错误:fatal: Authentication failed for ‘ … 使用的https提交,在用SourceTree提交代码时候发生错误,返回的错误提示说: fatal: Authentic
2021-04-04