【原】Spring整合Redis(第三篇)—盘点SDR搭建中易出现的错误
2016-08-23 19:45
453 查看
易错点01:Spring版本过低导致的错误
【环境参数】
Redis版本:redis-2.4.5-win32-win64
Spring原来的版本:4.1.7.RELEASE
Spring修改后的版本:4.2.6.RELEASE
【障碍描述】
Question:NoSuchMethodError
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V
【原因分析】
原因:Spring的版本过低
在SDR的官网中,有如下一段描述:
Spring Data Redis 1.x binaries requires JDK level 6.0 and above, and Spring Framework 4.2.6.RELEASE and above.
参考连接: http://coding84.com/article/24274915611907308.html http://docs.spring.io/spring-data/redis/docs/1.7.2.RELEASE/reference/html/
易错点02:设置redis的数据库Index
Redis默认有16个数据库,在配置文件中,设置Redis需要使用的哪个Redis数据库,应该使用属性“database”,而不是“dbIndex(自定义)”这个属性。
【环境参数】
Redis版本:redis-2.4.5-win32-win64
Spring原来的版本:4.1.7.RELEASE
Spring修改后的版本:4.2.6.RELEASE
【障碍描述】
Question:NoSuchMethodError
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
org.springframework.core.serializer.support.DeserializingConverter.<init>(Ljava/lang/ClassLoader;)V
【原因分析】
原因:Spring的版本过低
在SDR的官网中,有如下一段描述:
Spring Data Redis 1.x binaries requires JDK level 6.0 and above, and Spring Framework 4.2.6.RELEASE and above.
参考连接: http://coding84.com/article/24274915611907308.html http://docs.spring.io/spring-data/redis/docs/1.7.2.RELEASE/reference/html/
易错点02:设置redis的数据库Index
Redis默认有16个数据库,在配置文件中,设置Redis需要使用的哪个Redis数据库,应该使用属性“database”,而不是“dbIndex(自定义)”这个属性。
相关文章推荐
- 【原】Spring整合Redis(第二篇)—SDR环境搭建具体步骤
- [spring] springmvc 整合freemarker 出现版本错误
- Spring 整合Redis 出现 afterPropertiesSet signature: ()V) Incompatible argument to function 解决办法
- spring整合xfire出现Document root element "beans", must match DOCTYPE root "null"错误解决方案
- Struts整合Spring时使用addFieldError出现一次错误提示后就一直有该提示
- spring与struts2整合出现常见错误
- 总结的ibatis和spring整合时候出现的一些错误解决办法,更新中……
- Spring整合redis的错误
- 解决在Spring整合Hibernate配置tx事务管理器出现错误的问题
- redis集群搭建以及和spring整合
- Spring 整合JDBC出现的错误
- spring整合xfire出现Document root element "beans", must match DOCTYPE root "null"错误解决方案
- SSH整合过程中出现找不到org.springframework.web.context.ContextLoaderServlet的错误
- spring整合redis的错误
- Spring4.1.5 和 hibernate 4.3.7 整合出现MemorySafeUndeclaredThrowableStrategy,ClassNotFound错误
- Spring整合出现的错误,那位大神帮一下!!!!!!!!!
- spring+hibernate 整合出现的错误集合
- Spring 整合Redis 出现 afterPropertiesSet signature: ()V) Incompatible argument to function 解决办法
- Redis的集群搭建与Redis与spring整合
- Struts整合Spring时使用addFieldError出现一次错误提示后就一直有该提示