当前位置:网站首页>无法自动装配,未找到“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
结果确实可行,测试可以通过;
但是过了一会我又改了回去,神奇的是虽然还是提示无法自动装配,但是测试还是能通过,初次学习也不知道为什么,就先记录下,
边栏推荐
- MySQL queries all parents of the current node
- 野指针,空指针,失效指针
- JMeter notes 2 | JMeter principle and test plan elements
- Kali安装pip以及pip换源
- RIoTBoard开发板系列笔记(九)—— buildroot 移植MatchBox
- JS的DOM操作——style的操作
- File “manage.py“, line 14 ) from exc ^ SyntaxError: invalid syntax出错的原因及解决方法
- Advanced part of Nacos
- 服务漏洞&FTP&RDP&SSH&rsync
- [line test] Figure finding regular questions
猜你喜欢

sqli-labs简单安装

File upload and download demo

Aggregated new ecological model - sharing purchase, membership and reward system

JMeter notes 2 | JMeter principle and test plan elements

Filter filter

Part II - C language improvement_ 2. Memory partition

Paper reading: hardnet: a low memory traffic network

SPI - send 16 bit and 8-bit data
![[steering wheel] the super favorite idea efficiency artifact save actions is uninstalled](/img/b0/54a826287154be5b758b3850e7fa51.png)
[steering wheel] the super favorite idea efficiency artifact save actions is uninstalled

What kind of mode can make platform users self-help fission- Chain 2+1
随机推荐
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
Network security B module windows operating system penetration test of national vocational college skills competition
Kali installing PIP and pip source changing
[PTA] group programming ladder competition - Summary of exercises L3 (incomplete)
numpy.arange
Feature Selective Anchor-Free Module for Single-Shot Object Detection
DOM operation of JS -- style operation
R语言手写数字识别
Development system selection route
【信息系统项目管理师】第七章 复盘成本管理知识架构
Part II - C language improvement_ 4. Secondary pointer
给一个字符串 ① 请统计出其中每一个字母出现的次数② 请打印出字母次数最多的那一对
Kali安装pip以及pip换源
Filter 过滤器
25.消息订阅与发布——PubSub-js
File "manage.py", line 14) from exc ^ syntaxerror: cause and solution of invalid syntax error
Vulnhub DC1
Aggregated new ecological model - sharing purchase, membership and reward system
Notes on the basics of using parameters in libsvm (1)
Opencascade notes: GP package