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 444 forks source link

springBoot2.2依赖方法名变更 #127

Closed yythlj closed 4 years ago

yythlj commented 4 years ago

WorkAloneRedisManager.java:149的方法java.lang.String redis.clients.jedis.ScanResult.getStringCursor()在springBoot2.2的依赖的redis里没有了,由新方法java.lang.String redis.clients.jedis.ScanResult.getCursor()代替,希望作者可以更新下支持

ETouchs commented 4 years ago

作者似乎不维护了,可以看看以前的issue

113

yiyingcanfeng commented 4 years ago

还有2个解决方法:

  1. 在dependencies同级下加上:
    <dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>2.9.0</version>
        </dependency>
    </dependencies>
    </dependencyManagement>
  2. 在properties节点下加上2.9.0</jedis.version>, 比如:
    <properties>
    <java.version>11</java.version>
    <jedis.version>2.9.0</jedis.version>
    </properties>

    这样就可以锁定jedis的版本了

alexxiyang commented 4 years ago

更新成新版本了,改成了getCursor