Spring 整合Redis 出现 afterPropertiesSet signature: ()V) Incompatible argument to function 解决办法
2015-09-15 09:18
826 查看
使用的是 spring-data-redis 和 Jedis
配置好之后出现了以下错误:
这个错误时jar包冲突引起的,其中:jedis-2.4.1.jar 和 spring-data-redis-1.0.1.RELEASE.jar 无法搭配使用
解决办法:jedis-2.4.1.jar 和 spring-data-redis-1.3.4.RELEASE.jar 可以
配置好之后出现了以下错误:
Caused by: java.lang.VerifyError: (class: org/springframework/data/redis/connection/jedis/JedisConnectionFactory, method: afterPropertiesSet signature: ()V) Incompatible argument to function at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.getDeclaredConstructor(Unknown Source) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990) ... 28 more
这个错误时jar包冲突引起的,其中:jedis-2.4.1.jar 和 spring-data-redis-1.0.1.RELEASE.jar 无法搭配使用
解决办法:jedis-2.4.1.jar 和 spring-data-redis-1.3.4.RELEASE.jar 可以
相关文章推荐
- Redis源代码分析(十)--- testhelp.h小测试框架和redis-check-aof.c 日志检测
- redis的批量删除
- 【redis】 windows 32x 64x
- redis 启动警告及处理
- redis+keepalived实现高可用
- REDIS基础笔记
- redis cluster
- redis cluster主从复制
- Redis Sets
- 在Linux上yum安装运行Redis,只能安装2.4.10(主从)
- Redis源码解析(1)——源码目录介绍
- Redis 2.8.9源码 - ae模块
- redis3.0集群部署方案
- redis服务器的运维(配置、启动)
- redis作为缓存的简单读写例子
- Redis 学习笔记六 Java使用redis(测试环境:Win7)
- redis 安装及其使用
- Spring-data-redis(Version 1.6.0.RC1)中文版
- Jetty Session Persistence By Redis
- 使用Redis的Java客户端Jedis