编译的时候一直出现
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
来源:CSDN
作者:最爱抹茶味
链接:https://blog.csdn.net/qq_22056455/article/details/104718916