当前位置:网站首页>Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
2022-06-26 06:12:00 【Oh No 发量又少了】
这个报错主要是在我是用mybatis-plus的时候遇到的,出现这个报错的原因主要有以下两点:
- 导入的依赖的问题:
注意在使用spring boot整合mybatis-plus时导入的是如下依赖
<dependency>
<groupId>io.github.Caratacus</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>1.0.9</version>
而不是:
<dependency>-->
<groupId>com.suyeer</groupId>-->
<artifactId>mybatis-plus</artifactId>-->
<version>3.2.0.6</version>-->
</dependency>-->
- 注解问题
在mapper文件中的类中加入@Mapper注解
@Mapper
public interface UserMapper extends BaseMapper<Users> {
}
service接口实现类中加入@Service注解
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, Users> implements UserService {
}
边栏推荐
- Handwritten background management framework template (I)
- COW读写复制机制在Linux,Redis ,文件系统中的应用
- GoF23—抽象工厂模式
- Selective search for object recognition paper notes [image object segmentation]
- Five solutions across domains
- 04. basic data type - list, tuple
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- tf. nn. top_ k()
- Import / export function implementation
- MVC source code sharing
猜你喜欢

Hot! 11 popular open source Devops tools in 2021!

TCP connection and disconnection, detailed explanation of state transition diagram

Cython入门

100 cases of go language

MySQL 索引底层原理

如何设计好的技术方案

The interviewer with ByteDance threw me an interview question and said that if I could answer it, other companies would have an 80% chance of passing the technical level

Easy to understand from the IDE, and then talk about the applet IDE

Record how to modify the control across threads

The purpose of writing programs is to solve problems
随机推荐
Transaction and message semantics
Thread status and stop
Lamda expression
MySQL 索引底层原理
Zotero文献管理工具之Jasminum(茉莉花)插件
MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
06. talk about the difference and coding between -is and = = again
The purpose of writing programs is to solve problems
去哪儿网BI平台建设演进史
SQL Server视图
MVC source code sharing
Import export simple
Keepalived to achieve high service availability
Detailed explanation of serial port communication principle 232, 422, 485
技术能力的思考和总结
[spark] how to implement spark SQL field blood relationship
How to design a good technical scheme
DPDK——TCP/UDP协议栈服务端实现(二)
Implement the runnable interface
Library management system