NotWritablePropertyException: Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisP

寵の児 提交于 2020-03-07 20:59:41

编译的时候一直出现

org.springframework.beans.factory.BeanCreationException: Error creating bean with name

'jedisPoolConfig' defined in class path resource [redis-context.xml]: Error setting property values;

nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]:

Bean property 'maxActive' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

后来百度发现maxActive和maxWait没有找到这两个参数

新版本的jedis中将maxActive改成了maxTotal , MaxWait改成了MaxWaitMillis

然后就能正常编译过去

运用到版本:

redis.client 2.9.0

spring-data-redis   1.7.2.RELEASE 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!