必威体育Betway必威体育官网
当前位置:首页 > IT技术

jedis : NoSuchMethodError: org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier

时间:2019-08-05 11:40:00来源:IT技术作者:seo实验室小编阅读:60次「手机版」
 

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以上

相关阅读

“Uncaught TypeError: $(...).dataTable is not a fu

      “Uncaught TypeError: $(...).dataTable is not a function” 转载:https://www.tpyyes.com/a/js_css/2018/0718/680.

BeanUtils与PropertyUtils区别

相同的: 都是浅拷贝,都提供了copyProperties()方法,只要属性名相同就可以从源bean中拷贝值到目标bean中 不同点: BeanUtils.copyPrope

(-215:Assertion failed) !_src.empty() in function

(-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' Traceback (most recent call last):File "E:/project/cv_

BeanUtils工具的使用

BeanUtils 属性拷贝 BeanUtils.copyProperties(a, b); 注意 在不同的包下面,拷贝顺序相反 org.springframework.beans.BeanUtil

狄拉克函数(Dirac delta function)

1. 定义 δ(x)={∞0ifx=0ifx≠0 这样定义的目的在于使如下的积分式成立: ∫∞−∞δ(x)dx=1 2. 重要性质 sifting property ∫

分享到:

栏目导航

推荐阅读

热门阅读