title: How to use Jedis Client 3.x with Spring-boot 1.5.x?
body: <p>I want to use Stream function in Jedis which only available in Jedis 3.x ,but I can not change the Spring boot version to 2.2 for some reasons and now the Springboot version is only 1.5.x:</p>
  
  <pre><code>            &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-data-redis&lt;/artifactId&gt;
                  &lt;version&gt;1.5.11.RELEASE&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>
  
  <p>If I use Jedis 3.x with SpringBoot1.5.x, </p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;redis.clients&lt;/groupId&gt;
              &lt;artifactId&gt;jedis&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>it will report errors:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>which is caused by the Jedis version( if changes the version of Jedis to 2.9.x,this error will disappear, but the Stream function can not be used). It is a dilemma.</p>
  
  <p>Does anybody has any suggestion?</p>