zoukankan      html  css  js  c++  java
  • 【原】Spring整合Redis(第三篇)—盘点SDR搭建中易出现的错误

    易错点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(自定义)”这个属性。

  • 相关阅读:
    突破
    leetcode刷题 538~
    leetcode刷题 519~
    Docker练习之镜像更新方法1
    十二 Linux之tar解压缩
    十一 Linux软件包管理yum
    十 Linux指令之grep
    九 linux指令之find
    八 Linux ps指令查看进程和kill杀进程
    七 Linux top命令
  • 原文地址:https://www.cnblogs.com/zjrodger/p/5800645.html
Copyright © 2011-2022 走看看