当前位置:网站首页>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
边栏推荐
- ssm框架整合
- Differences among left join, inner join and right join
- pyside2____1.安装和案列
- 使用Druid连接池创建DataSource(数据源)
- Counting Nodes in a Binary Search Tree
- 智慧展厅设计的优势及适用行业分析
- How to test the payment process?
- Idea 如何新建一个groovy的项目(图文详细解释)
- Select user stories | the false positive rate of hole state in jushuitan is almost 0. How to do this?
- Complete Binary Tree
猜你喜欢

一、MySQL基础

支付流程如何测试?

Replication of df-gan experiment -- detailed steps of replication of dfgan and forwarding from remote port to local port using mobaxtem

二叉搜索树详讲

Inspiration from "flying man" Jordan! Another "arena" opened by O'Neill

How to sinicize the JMeter interface?
![[search] two way search + A*](/img/b1/115f75e8a7c7d3f797f5f4598a266c.png)
[search] two way search + A*

Plato farm is expected to further expand its ecosystem through elephant swap

来自“飞人”乔丹的启示!奥尼尔开启的另一个“赛场”

C language address book management system (linked list, segmented storage of mobile phone numbers, TXT file access, complete source code)
随机推荐
Plato farm is expected to further expand its ecosystem through elephant swap
听过最自律的一句话: 那些我难以言表 不作声响
对话框简介
来自“飞人”乔丹的启示!奥尼尔开启的另一个“赛场”
Flexible array and common problems
Three paradigms, constraints, some keyword differences,
Why is count (*) slow
JVM上篇:内存与垃圾回收篇十二--StringTable
MySQL storage engine and its differences
How do I reset Photoshop preferences? PS method of resetting preferences
JVM上篇:内存与垃圾回收篇十四--垃圾回收器
Differences among left join, inner join and right join
文件对话框
Event Summary - common summary
知识点总结(一)
Sub database and sub table
二叉搜索树详讲
Install pyGame
Svn usage details
写代码涉及到的斜杠/和反斜杠\