Adding dependencies for Spring Session

The dependencies needed for Spring Session connecting to a Redis store are spring-session-data-redis and lettuce-core:

    <dependency>      <groupId>org.springframework.session</groupId>      <artifactId>spring-session-data-redis</artifactId>      <type>pom</type>    </dependency>   <dependency>     <groupId>io.lettuce</groupId>     <artifactId>lettuce-core</artifactId>   </dependency>

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.