lenve / vhr

微人事是一个前后端分离的人力资源管理系统,项目采用SpringBoot+Vue开发。
http://vhr.javaboy.org
27.4k stars 10.3k forks source link

STS里,更新了Maven后,运行HrserverApplication.java出现这个异常,请问怎么解决 #72

Closed yespie closed 5 years ago

yespie commented 5 years ago

2019-01-24 00:58:31.028 INFO 13104 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'clientInboundChannelExecutor' 2019-01-24 00:58:31.051 INFO 13104 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-01-24 00:58:31.229 ERROR 13104 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Parameter 0 of method redisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' that could not be found.

Action:

Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.connection.RedisConnectionFactory' in your configuration.

muggle0 commented 5 years ago

你应该是redis配置错误了,百度springboot redis配置使用可解决你的问题

lenve commented 5 years ago

是的,redis配置错误,启动redis后,修改下application.properties中redis相关的配置即可