alexxiyang / shiro-redis

shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
MIT License
1.17k stars 446 forks source link

Spring Boot 3.1.4 使用的时候报错 java.lang.NoSuchMethodError: 'java.lang.Long redis.clients.jedis.Jedis.del(byte[])' #168

Open indiff opened 1 year ago

indiff commented 1 year ago

图片

jedis 版本 4.3.2

wangwufan commented 10 months ago

同样的问题

hua7073 commented 9 months ago

有解决方案吗

wangwufan commented 9 months ago

我把它内嵌的jedis替换掉就好了

<dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>3.10.0</version>
        </dependency>
<dependency>
  <groupId>org.crazycake</groupId>
  <artifactId>shiro-redis</artifactId>
  <version>3.3.1</version>
  <exclusions>
      <exclusion>
          <groupId>org.apache.shiro</groupId>
          <artifactId>shiro-core</artifactId>
      </exclusion>
      <exclusion>
          <groupId>redis.clients</groupId>
          <artifactId>jedis</artifactId>
      </exclusion>
  </exclusions>
</dependency>
ilaotan commented 3 months ago

5.x的jedis好像只能改仓库代码了 https://github.com/ilaotan/shiro-redis/tree/jedis5

llllllxy commented 3 months ago

自己更新提升jedis的版本