Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]
2017-01-18 10:39
816 查看
Spring和redis集成时,启动项目报maxActive属性没有setter和getter方法
严重: Servlet [spring] in web application [/spring_demo] threw load() exception
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?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1067)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:926)
通过查找资料发现新版本的jedis修改了maxActive属性为maxTotal ,maxWait改成了maxWaitMillis
修改这两个属性后问题解决
严重: Servlet [spring] in web application [/spring_demo] threw load() exception
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?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1067)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:926)
通过查找资料发现新版本的jedis修改了maxActive属性为maxTotal ,maxWait改成了maxWaitMillis
修改这两个属性后问题解决
相关文章推荐
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
- 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
- Invalid property 'LyMhXnyjjsrDaoImpl' of bean class
- Invalid property 'annotatedClasses' of bean class
- org.springframework.beans.NotWritablePropertyException: Invalid property 'userDao' of bean class
- 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属性
- jedis中的JedisPoolConfig没有setMaxActive和setMaxWait属性
- ssh 中使用c3p0 的连接池配置出错 Invalid property 'xxx' of bean class [com.mchange.v2.c3p0.ComboPoo