Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 如何将Jedis Client 3.x与Spring boot 1.5.x配合使用?_Spring Boot_Stream_Jedis - Fatal编程技术网

Spring boot 如何将Jedis Client 3.x与Spring boot 1.5.x配合使用?

Spring boot 如何将Jedis Client 3.x与Spring boot 1.5.x配合使用?,spring-boot,stream,jedis,Spring Boot,Stream,Jedis,我想在绝地中使用流函数,它只在绝地3.x中可用,但由于某些原因,我无法将Spring boot版本更改为2.2,现在Springboot版本仅为1.5.x: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis<

我想在绝地中使用流函数,它只在绝地3.x中可用,但由于某些原因,我无法将Spring boot版本更改为2.2,现在Springboot版本仅为1.5.x:

            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-data-redis</artifactId>
                <version>1.5.11.RELEASE</version>
            </dependency>
这是由绝地版本引起的(如果将绝地版本更改为2.9.x,此错误将消失,但流函数无法使用)。这是一个进退两难的局面


有人有什么建议吗?

不能将绝地武士3.x与SpringBoot1.5.x一起使用,必须将SpringBoot升级到2.x

        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
            <version>3.1.0</version>
        </dependency>
Caused by: java.lang.ClassNotFoundException: redis.clients.util.SafeEncoder
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
    ... 50 common frames omitted