当前位置:网站首页>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 {
}
边栏推荐
- 消息队列-功能、性能、运维对比
- 个人博客系统需求分析
- The difference between abstract and interface interface
- Younger sister Juan takes you to learn JDBC -- two days' Sprint Day2
- Keepalived to achieve high service availability
- Gof23 - builder mode
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
- Five solutions across domains
- 技术能力的思考和总结
- Typora activation method
猜你喜欢
Experience the new features of Milvus 2.0 together
[alluxio & Dachang] the original boss direct employment was applied in this way

Import export simple
Everything is a vector. The service practice of iqiyi online vector recall project

Install pyinstaller

GoF23—原型模式

实时数仓方案如何选型和构建

canal部署、原理和使用介绍

低代码实时数仓构建系统的设计与实践

MVC source code sharing
随机推荐
Evolution history of qunar Bi platform construction
numpy. frombuffer()
Basic construction of SSM framework
numpy. log
Getting to know concurrency problems
New generation engineers teach you how to play with alluxio + ml (Part 1)
Zotero文献管理工具之Jasminum(茉莉花)插件
302. minimum rectangular BFS with all black pixels
Volatile application scenarios
typescript的class结合接口(interface)的简单使用
Lamda expression
Playing RTSP streaming video on Web pages (webrtc)
Application of cow read / write replication mechanism in Linux, redis and file systems
Market trend report, technical innovation and market forecast of microencapsulated chemical pesticides in China
Understanding of nil in go language
Efk upgrade to Clickhouse log storage practice
技术能力的思考和总结
A new paradigm for large model application: unified feature representation optimization (UFO)
Zotero使用之自定义参考文献格式
Summary of JVM interview focus (II) -- garbage collector (GC) and memory allocation strategy