***************************
APPLICATION FAILED TO START
*************************** Description: Field redisTemplate in com.demo.service.UserServiceImpl required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.
- Bean method 'stringRedisTemplate' in 'RedisAutoConfiguration' not loaded because @ConditionalOnMissingBean (types: org.springframework.data.redis.core.StringRedisTemplate; SearchStrategy: all) found beans of type 'org.springframework.data.redis.core.StringRedisTemplate' template Action: Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.

点击查看大图

通过上面的Description信息可以看出来,报错在UserServiceImpl 中,具体UserServiceImpl 代码如下图所示:

解决方案:

RedisTemplate<String, List> redisTemplate 的注解 @Autowired 更换为 @Resource

再次运行,问题搞定。

你可能感兴趣的文章:

最新文章

  1. The connection to adb is down, and a severe error has occured.(转)
  2. QT toLocal8Bit奇怪的问题
  3. C#开发Activex控件(2)
  4. ruby字符串学习笔记4
  5. 服务器部署_nginx报错: [warn] conflicting server name &quot;www.test.com&quot; on 0.0.0.0:80, ignored
  6. jbpm4.4 demo2
  7. AFNetworiking与ASIHttpRequest对比
  8. tabbar加小红点
  9. jQuery第十一章
  10. pip 警告!The default format will switch to columns in the future
  11. 【转】千万不要在JS中使用连等赋值操作
  12. 伸展树Splay【非指针版】
  13. Git上传文件容量大小限制
  14. 通过shell操作串口
  15. 奶牛编号(Cowids) [NOIP模拟]
  16. 【C++】获取URL中主机域名
  17. etymon word air aero aeri aer ag agreement walk joint trick skill chief forget out~1
  18. Dictionary应用
  19. bzoj 2111 [ZJOI2010]Perm 排列计数(DP+lucas定理)
  20. Renesas 符号地址空间对齐

热门文章

  1. 使用xkbeancomparator对比javabean,生成操作记录
  2. JavaScript中的 JSON 和 JSONP
  3. ConstraintLayout 用法
  4. Android中获取实时网速(2)
  5. 你所不知的 PHP 断言(assert)
  6. 7. [mmc subsystem] host(第一章)——概述
  7. (九)OpenStack---M版---双节点搭建---Swift(单节点)安装和配置
  8. qt需求
  9. 如何使用jmockit进行单元测试
  10. logrotate日志管理工具与split文件切割命令