title: Spring Boot 2 can't connect to Redis
body: <p>I am trying to use the Lettuce driver with Spring Boot 2 and Spring Data Redis (both latest). I can't connect to Redis, I keep getting the following error:</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: io.lettuce.core.KeyValue
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_111]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_111]
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_111]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_111]
      ... 148 common frames omitted
  </code></pre>
  
  <p>I want to use the reactive connection so I am overriding the connectionFactory, config class</p>
  
  <pre><code>@Configuration
  class RedisConfig {
  
      @Bean
      fun reactiveRedisConnection(redisConnectionFactory: ReactiveRedisConnectionFactory): ReactiveRedisConnection {
          return redisConnectionFactory.reactiveConnection
      }
  
      @Bean
      fun redisConnectionFactory(): LettuceConnectionFactory {
          return LettuceConnectionFactory()
      }
  }
  </code></pre>
  
  <p>application.properties</p>
  
  <pre><code>## Redis config
  spring.redis.host=192.168.99.100
  spring.redis.port=32769
  </code></pre>
  
  <p>build.gradle</p>
  
  <pre><code>dependencies {
      compile("org.springframework.boot:spring-boot-starter-webflux:${springBootVersion}")
      compile('org.springframework.boot:spring-boot-starter-actuator')
      compile("org.springframework.data:spring-data-redis")
      compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
      compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
      compile("org.jetbrains.kotlin:kotlin-reflect")
      compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.5")
      runtime('org.springframework.boot:spring-boot-devtools')
      testCompile('org.springframework.boot:spring-boot-starter-test')
  }
  </code></pre>
  
  <p>Thanks</p>