H5W3
当前位置:H5W3 > 其他技术问题 > 正文

redisson安装出问题

一直报错,用的3.10.0版本


Description:

An attempt was made to call the method org.redisson.api.RTopic.addListener(Lorg/redisson/api/listener/MessageListener;)I but it does not exist. Its class, org.redisson.api.RTopic, is available from the following locations:

    jar:file:/Users/xiaogu/.m2/repository/org/redisson/redisson/3.10.0/redisson-3.10.0.jar!/org/redisson/api/RTopic.class

It was loaded from the following location:

    file:/Users/xiaogu/.m2/repository/org/redisson/redisson/3.10.0/redisson-3.10.0.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.redisson.api.RTopic

回答:

目测是下载失败了。去/Users/xiaogu/.m2/repository/org/redisson/redisson/这里,删除下面全部文件。重新编译

回答:

看起来像是依赖没有下载完全,可以考虑两种方式试试
1,如 @Tyrael 所说,把 repository 里面的内容删除
2,使用如下命令在项目目录运行

mvn compile dependency:purge-local-repository

本文地址:H5W3 » redisson安装出问题

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址