相关推荐recommended
spring-boot 项目打包后运行 orgspringframeworkdataredisconnectionzsetTuple 错误
作者:mmseoamin日期:2024-02-05

问题

本地直接启动正常,结果打包后出现问题

 Failed to start bean 'redisContainer'; nested exception is java.lang.NoClassDefFoundError: org/springframework/data/redis/connection/zset/Tuple

当前环境:

  • spring-boot 2.7.10
  • redisson-spring-boot-starter 3.18.1
  • maven3.5.4

    解决问题

    把 redisson-spring-boot-starter 3.18.1 降到 3.17.4 就好了

    过程

    妈蛋,jenkins 部署发现启动不了,各种清理都不行换了 jenkins 上的 maven 版本,清了所有依赖重新拉,都不行

    然后试本地打包运行,我去,一直以为是部署问题,结果本地也不行

    前两天刚把 springboot 2.5.14 升级了 2.7.10

    redisson-spring-boot-starter 从 3.13.6 升级到 3.18.1 来兼容 springboot

    结果 3.18.1 兼容了本地运行,没兼容打包后的运行,找了我几大个小时一点一点的排查错误