当前位置:网站首页>无法自动装配,未找到“RedisTemplate类型的Bean
无法自动装配,未找到“RedisTemplate类型的Bean
2022-07-24 07:26:00 【OfficialUser】
无法自动装配,未找到“RedisTemplate类型的Bean
在SpringBoot整合Redis发现了一个问题,困扰良久,
我是使用Spring Boot Starter 创建Spring Boot应用程序的。或者说就是用IDEA中的 Spring Initializr来快速创建SpringBoot项目的,
完了之后测试了一下;结果报错了;
界面中也提示说有错误;
@Autowired
private RedisTemplate redisTemplate;

后来找到一个解决办法,说是把
@Autowired
改为
@Resource
结果确实可行,测试可以通过;
但是过了一会我又改了回去,神奇的是虽然还是提示无法自动装配,但是测试还是能通过,初次学习也不知道为什么,就先记录下,
边栏推荐
- RIoTBoard开发板系列笔记(九)—— buildroot 移植MatchBox
- 中国三氯氢硅市场预测及战略研究报告(2022版)
- 周杰伦直播超654万人观看,总互动量破4.5亿,助力快手再破纪录
- The goal you specified requires a project to execute but there is no POM in this directory
- 24.全局事件总线
- mysql查询当前节点的所有父级
- 项目上线就炸,这谁受得了
- Chinese manufacturers may catch up with the humanoid robot Optimus "Optimus Prime", which has been highly hyped by musk
- Injectfix principle learning (to realize the heat of repair addition)
- fopen、fwrite、fseek、ftell、fread使用demo
猜你喜欢

MITRE ATT&CK超详细学习笔记-02(大量案例)

Buffer overflow vulnerability of network security module B in national vocational college skills competition

Filter 过滤器

Influxdb未授权访问&CouchDB权限绕过

File upload and download demo

C language from entry to soil function

Jay Chou's live broadcast was watched by more than 6.54 million people, with a total interaction volume of 450million, helping Kwai break the record again

Jackson 解析 JSON 详细教程
![[steering wheel] code review ability of idea to ensure code quality](/img/70/dec438ba57f9cbd5020bba5da652ba.png)
[steering wheel] code review ability of idea to ensure code quality

Chapter007 FPGA learning IIC bus EEPROM reading
随机推荐
拉普拉斯(Laplace)分布
Harbor2.2 用户角色权限速查
The goal you specified requires a project to execute but there is no POM in this directory
JS_实现多行文本根据换行分隔成数组
There are two tables in Oracle, a and B. these two tables need to be associated with the third table C. how to update the field MJ1 in table a to the value MJ2 in table B
C language from introduction to soil -- super detailed summary of operators
Using depth and normal textures in unity
25.消息订阅与发布——PubSub-js
FPGA realizes reading and writing of axi4 bus
Vulnhub DC1
Jay Chou's live broadcast was watched by more than 6.54 million people, with a total interaction volume of 450million, helping Kwai break the record again
Bookkeeping app: xiaoha bookkeeping 1 - production of welcome page
Oauth2==SSO三种协议。Oauth2四种模式
24.全局事件总线
Variables and data types (03)
Win10 sound icon has no sound
numpy.concatenate
【Tips】创建版本控制项目的简单方法
Notes on the basics of using parameters in libsvm (1)
野指针,空指针,失效指针