Field redisTemplate in com.xxxx.utils.RedisCacheRepository required a bean of type .xxxxxx
今天在整合SpringBoot的reids的时候,报了个错,错误如图所示。
说白了就是没有注入到spring容器中去,但是我代码明明注入进来了,
@Autowiredprivate RedisTemplate<String, Object> redisTemplate;
但是我把@Autowired换成@Resource就可以了
或者把泛型去掉也可以,
@Autowiredprivate RedisTemplate redisTemplate;
还有一种换成@Resource
@Resourceprivate RedisTemplate<String, Object> redisTemplate;
Field redisTemplate in com.xxxx.utils.RedisCacheRepository required a bean of type .xxxxxx相关推荐
- 【SpringBooot报错】eld redisTemplate in com.buba.utils.RedisUtils required a bean of type
报错如下: 2022-07-19 14:10:36.111 ERROR 16164 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporte ...
- 解决:Field xxMapper in xx.service.impl.xxServiceImpl required a bean of type ‘xx.mapper.xxMapper‘
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 启动 springboot 项目报错: Field userMapper in gentle. ...
- Field accountDao in com.mdxl.service.AccountService required a bean of type 'com.mdxl.dao.MbAccountD
为什么80%的码农都做不了架构师?>>> Springboot整合注解和xml出现的错误 详细看下面 *************************** APPLICATI ...
- SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
问题描述: SpringBoot项目启动报错,报错内容:'com.xxx.mapper.XxxxMapper' that could not be found ******************** ...
- Field myFeignClient in com.zkh.controller.FeignController required a bean of type 'com.zkh.feign.MyF
Description:Field myFeignClient in com.zkh.controller.FeignController required a bean of type 'com.z ...
- Field userMapper in baizhi.service.impl.UserServiceImpl required a bean of type ‘baizhi.mapper.UserM
启动项目时发现错误:Field userMapper in baizhi.service.impl.UserServiceImpl required a bean of type 'baizhi.ma ...
- 启动SpringBoot报错:Field userService in com.sunshin.controller.UserController required a bean of type...
当项目启动SpringBoot报这个错误时: Field userService in com.sunshine.controller.UserController required a bean o ...
- 解决办法 Field userService in com.sxsj.controller.RegistLoginController required a bean of type
转自:https://blog.csdn.net/awmw74520/article/details/82687288 APPLICATION FAILED TO START Error starti ...
- Field XXXService in com.XXX.controller.XXX required a bean of type ‘com.XXX.mapper.xxx‘that could no
解决办法: Field surveyTypeService in com.XXX.controller.XXX required a bean of type 'com.XXX.mapper.xxx' ...
最新文章
- C语言的 32个关键之和9个控制语言之关键字
- 将您的基于 Accelerator 的 SAP Commerce Cloud Storefront 迁移到 Spartacus Storefront
- 爱前端2018全栈大前端_启动2018年前端工具调查
- Android商城开发系列(一)——开篇
- 未检测到其他显示器_如何将 Surface 连接到电视、显示器或投影仪,我教你
- C#中List〈string〉和string[]数组之间的相互转换
- python三级联动菜单_2分钟制作智能式联动下拉菜单,轻松搞定重复内容,录入不出错...
- 固态硬盘故障检测_如何检测固态硬盘是否损坏 - 卡饭网
- 多空对比:一个实用的短中长期资金观察指标介绍
- Android程序员英文介绍,安卓程序员面试英文自我介绍
- 玩转小黑框!Terminal 入门到进阶,最后放弃!
- 2019北京大学研究生推免上机考试
- 元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展
- js清除浏览器缓存的几种方法(项目总结)
- k8s之pod和pod探针
- PB使用WININET的FTP方式自动更新(四、下载)
- Anaconda3安装教程及配置(全)
- 普希金-假如生活欺骗了你
- python--求圆的面积
- PTA——重要的话说三遍