当前位置:网站首页>Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
2022-06-26 06:19:00 【Oh no, less hair】
This error report is mainly because I use mybatis-plus When I met , There are two main reasons for this error report :
- The problem of imported dependencies :
Pay attention to use spring boot Integrate mybatis-plus The following dependencies are imported during
<dependency>
<groupId>io.github.Caratacus</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>1.0.9</version>
instead of :
<dependency>-->
<groupId>com.suyeer</groupId>-->
<artifactId>mybatis-plus</artifactId>-->
<version>3.2.0.6</version>-->
</dependency>-->
- Annotation problem
stay mapper Add to the class in the file @Mapper annotation
@Mapper
public interface UserMapper extends BaseMapper<Users> {
}
service Add... To the interface implementation class @Service annotation
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService {
}
边栏推荐
- 302. minimum rectangular BFS with all black pixels
- numpy. exp()
- DPDK——TCP/UDP协议栈服务端实现(二)
- 事务与消息语义
- TCP連接與斷開,狀態遷移圖詳解
- How can an enterprise successfully complete cloud migration?
- 技术能力的思考和总结
- Web components series (10) -- realize the basic layout of mycard
- 06. talk about the difference and coding between -is and = = again
- Selective search for object recognition paper notes [image object segmentation]
猜你喜欢

Architecture design method

Data visualization practice: Experimental Report

温度报警器

Logstash - logstash sends an alarm email to email

Getting started with Python

MySQL-07

How to design a good technical scheme
Installing rainbow in various kubernetes with Helm

架构设计方法
Customer Stories | Netease spring breeze: the "spring breeze" of the fun industry, reaching out to all areas through in-depth interaction
随机推荐
Playing RTSP streaming video on Web pages (webrtc)
MySQL-08
How to design a good technical scheme
Tencent's 2022 school recruitment of large factories started with salary, and the general contracting of cabbage is close to 40W!
A new paradigm for large model application: unified feature representation optimization (UFO)
tf. nn. top_ k()
Five solutions across domains
Prometheus和Zabbix的对比
Typescript type
【Spark】Spark SQL 字段血缘如何实现
EFK昇級到ClickHouse的日志存儲實戰
TCP连接与断开,状态迁移图详解
Redis multithreading and ACL
获取当前月份的第一天和最后一天,上个月的第一天和最后一天
如何让主线程等待子线程执行完毕后再执行
Market trend report, technical innovation and market forecast of China's valeryl chloride
MYSQL索引不生效的原因
成水最多的容器
New generation engineers teach you how to play with alluxio + ml (Part 1)
Solve the problem that Cmdr cannot use find command under win10