当前位置:网站首页>Could not autowire. No beans of ‘userMapper‘ type found.
Could not autowire. No beans of ‘userMapper‘ type found.
2022-07-27 05:11:00 【Shura_】
There are no mistakes here , however IDEA Report red

package com.example.demo.mapper;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@SpringBootTest
@RunWith(SpringRunner.class) // Start this unit test class
public class UserMapperTest {
@Autowired
UserMapper userMapper;
public void insert() {
}
}
Click on File>Settings>Inspections>Spring>Spring Core>Core>Autowiring for Bean Class>Severity:No highlighting,only fix
Finally, click ok

solve
边栏推荐
- Flexible array and common problems
- How do I reset Photoshop preferences? PS method of resetting preferences
- DBUtils
- Li Kou achieved the second largest result
- Demo of throttling function -- regular expression matching
- Svn usage details
- Detailed description of binary search tree
- 34. 分析flexible.js
- 接口和抽象类/方法学习 demo
- Typescript details
猜你喜欢

Installation and template setting of integrated development environment pychar

How do I reset Photoshop preferences? PS method of resetting preferences

JVM Part 1: memory and garbage collection part 14 -- garbage collector

集成开发环境Pycharm的安装及模板设置
![[search] - multi source BFS + minimum step model](/img/42/11b5b89153ab48d837707988752268.png)
[search] - multi source BFS + minimum step model

JVM上篇:内存与垃圾回收篇十四--垃圾回收器

MQ message queue is used to design the high concurrency of the order placing process, the generation scenarios and solutions of message squeeze, message loss and message repetition

Event

MySQL storage engine and its differences

Introduction to MySQL optimization
随机推荐
[search] connectivity model of DFS + search order
Network protocol details: IP
JVM上篇:内存与垃圾回收篇十四--垃圾回收器
智慧展厅设计的优势及适用行业分析
[search] flood fill and shortest path model
Event Summary - common summary
二叉搜索树详讲
Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time
Translation of robot and precise vehicle localization based on multi sensor fusion in diverse city scenes
Web框架介绍
Static and final keyword learning demo exercise
How to create an applet project
支付流程如何测试?
来自“飞人”乔丹的启示!奥尼尔开启的另一个“赛场”
集成开发环境Pycharm的安装及模板设置
二、MySQL高级
Raspberry pie output PWM wave to drive the steering gear
feign调用丢失请求头问题解决及原理分析
[acwing] solution to the 61st weekly match
Read write separation and master-slave synchronization