Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
2016-09-05 12:45
477 查看
Invalid property ‘maxWait’ of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property ‘maxWait’ 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中移除了这两个属性
通过查看确实是这样的
新版本的jedis中将maxActive改成了maxTotal , MaxWait改成了MaxWaitMillis
所以poolConfig中向我这样写就可以了
<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxTotal" value="${redis.pool.maxActive}" />
<property name="maxIdle" value="${redis.pool.maxIdle}" />
<property name="MaxWaitMillis" value="${redis.pool.maxWait}" />
<property name="testOnBorrow" value="${redis.pool.testOnBorrow}" />
</bean>
参数自己配,完毕。。。
如题报了这样一个错,显然是因为maxActive和maxWait没有找到导致的
说明高版本的jedis中移除了这两个属性
通过查看确实是这样的
新版本的jedis中将maxActive改成了maxTotal , MaxWait改成了MaxWaitMillis
所以poolConfig中向我这样写就可以了
<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxTotal" value="${redis.pool.maxActive}" />
<property name="maxIdle" value="${redis.pool.maxIdle}" />
<property name="MaxWaitMillis" value="${redis.pool.maxWait}" />
<property name="testOnBorrow" value="${redis.pool.testOnBorrow}" />
</bean>
参数自己配,完毕。。。
相关文章推荐
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
- [redis.clients.jedis.JedisPoolConfig]: Bean property 'maxActive' is not writable or has an invalid
- org.springframework.beans.NotWritablePropertyException: Invalid property 'dDuMapDao' of bean class
- redis + Jedis + Spring报错Type 'redis/clients/jedis/JedisPoolConfig'(current frame, stack[4]) is not a
- org.springframework.beans.NotWritablePropertyException: Invalid property 'userDao' of bean class
- Invalid property 'LyMhXnyjjsrDaoImpl' of bean class
- Invalid property 'annotatedClasses' of bean class
- jedis中的JedisPoolConfig没有setMaxActive和setMaxWait属性
- Invalid property 'annotatedClasses' of bean class
- NotReadablePropertyException: Invalid property 'principal.userName' of bean class [org.springframewo
- Invalid property 'driverClassName' of bean class
- Dubbo admin在JDK1.8环境运行报Invalid property 'URIType' of bean class
- Dubbo admin在JDK1.8环境运行报Invalid property 'URIType' of bean class
- Invalid property 'name' of bean class
- spring boot 报错 Invalid property 'mapperHelper' of bean class [org.mybatis.spring.mapper.MapperFactor
- org.springframework.beans.NotWritablePropertyException: Invalid property 'userDao' of bean class [co
- jedis中的JedisPoolConfig没有setMaxActive和setMaxWait属性
- ssh 中使用c3p0 的连接池配置出错 Invalid property 'xxx' of bean class [com.mchange.v2.c3p0.ComboPoo