spring-boot-redis | 基于spring boot开发的redis集群中间件应用;集群缓存、session共享、redis-cache。 | Caching library
kandi X-RAY | spring-boot-redis Summary
kandi X-RAY | spring-boot-redis Summary
spring-boot-redis
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- bean template .
- Returns a key generator for the objects .
- Serializes the given object to a byte array .
- Deserializes an object .
- Entry point for the Spring Boot application .
- login .
- Find demo by id
- Sets the jvmRoute attribute .
- Sets the number of the sessionId length .
- Create the servlet container .
spring-boot-redis Key Features
spring-boot-redis Examples and Code Snippets
Community Discussions
Trending Discussions on spring-boot-redis
QUESTION
I am using Spring Data Redis example. In this example, simply trying to connect to the redis DB. Runnning the main method, I am getting below error.
Spring Boot version used is v 2.0.3.RELEASE & Redis version is 2.4.5.
Code reference taken from : http://javasampleapproach.com/spring-framework/spring-data/spring-data-redis-example-spring-boot-redis-example and https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-redis.html. Can anybody please suggest what is wrong here ?
...ANSWER
Answered 2018-Jul-14 at 17:34Your example is referencing boot 1.5.X
which uses Jedis
, by default lettuce
is used in Boot 2.0
if you want to use Jedis
you need to manually add the dependency. Additionally you can see that Jedis
isn't on your classpath and lettuce
is.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-boot-redis
You can use spring-boot-redis like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-boot-redis component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page