Consider defining a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' in your configuration

Description:

Parameter 0 of method redisTemplate in com.liaojie.cloud.auth.server.config.redis.RedisConfiguration required a bean of type 
'org.springframework.data.redis.connection.RedisConnectionFactory' that could not be found. Action: Consider defining a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' in your configuration.

solution:

     <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326369599&siteId=291194637