Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
来源:互联网 发布:知乎是什么类型的网站 编辑:程序博客网 时间:2024/06/08 13:55
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>
参数自己配,完毕。。。
0 0
- 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
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
- Invalid property 'annotatedClasses' of bean class
- Invalid property 'annotatedClasses' of bean class
- Invalid property 'name' of bean class
- Invalid property 'driver_class' of bean class
- Invalid property 'initialSize' of bean class 问题解决
- Invalid property 'annotatedClasses' of bean class
- Invalid property 'LyMhXnyjjsrDaoImpl' of bean class
- 四、Invalid property 'dataSource' of bean class [xxx.dao.JdbcUserDao]: Bean property
- Invalid property 'transactionManager' of bean class的解决办法
- org.springframework.beans.NotWritablePropertyException: Invalid property 'dDuMapDao' of bean class
- NotReadablePropertyException: Invalid property 'principal.userName' of bean class [org.springframewo
- Invalid property 'transactionManager' of bean class的解决办法
- org.springframework.beans.NotWritablePropertyException: Invalid property 'userDao' of bean class
- tomcat启动报错:Invalid property 'userService' of bean class [xxxx]: No property 'xxx' found
- ListView基本使用
- Android01_Android入门
- hrbust 1241 Blocks【暴力枚举+简单优化】
- Linux时钟精度:毫秒?微妙?纳秒?
- LRU算法实践分析
- Invalid property 'maxActive' of bean class [redis.clients.jedis.JedisPoolConfig]: Bean property
- BitMap
- ListView的进阶-跳转 下拉 上拉 多布局重用
- 菜鸟排序之选择与冒泡
- markdown编辑器
- 初学者笔记:Scanf间隔符号的使用
- 【JZOJ 3052】 剪草
- 海淘 亚马逊 冻结账号 怎么办?
- [MacOSX]_[LaunchDaemons]_[Mac OS X 安装Tomcat开机启动服务的方法之一]