整合redis时启动Spring boot 报错:
To display the conditions report re-run your application with ‘debug’ enabled.
错误提示如下:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-04-05 18:06:41.569 ERROR 1392 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
The following candidates were found but could not be injected:
- Bean method 'redisConnectionFactory' in 'JedisConnectionConfigur