当前位置:网站首页>Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
2022-07-28 05:39:00 【jekyhu】
One 、 The emergence of problems :
When debugging code , hold mapper.xml The method in is temporarily commented out , After uncommenting , That's the mistake . The specific errors are as follows :

Two 、 resolvent :
1 . mapper.xml Medium namespace And the actual mapper The documents are inconsistent .

As shown in figure of namespace, It needs to be connected with mapper One A corresponding , Otherwise you will report an error . As shown in the figure below ,copy reference Back to namespace Can solve the problem .

2 . mapper Method names and in interfaces mapper.xml Medium id Labels are inconsistent
Here's the picture ,select id=“xxxxx” ,xxxxx Need and mapper The method names in the interface are the same .

Of these two places findbyid It is necessary to keep the same .

3 . target In the catalog mapper.xml The content of the file is inconsistent with the current , Or not built target Catalog .
target The directory path is shown in the following figure :

(1) target In the catalog mapper.xml The content of the file is inconsistent with the current
target Under the document mapper.xml:

Current mapper.xml:

You can see target Of which I commented out at that time . Remove the comments to solve the problem .
(2) Not built into target Catalog .
stay IDEA The terminal executes the following code :
mvn clean
mvn compile
边栏推荐
- The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem
- Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
- Advanced multi threading: the underlying principle of synchronized, the process of lock optimization and lock upgrade
- ArrayList多线程安全解决办法
- BigDecimal rounds and retains two decimal places
- JVM篇 笔记3:类加载与字节码技术
- 冶金物理化学复习 ---- 气固反应动力学
- Redis' bloom filter
- 多线程进阶:锁的策略
- 冶金物理化学复习 --- 冶金反应动力学基础与多相反应动力学特征
猜你喜欢

Example of main diagram of paper model

多线程进阶:volatile的作用以及实现原理

latex和word之间相互转换

How Visio can quickly generate the same pattern and image matrix

ECCV22 最新54篇论文主图整理

Digital twin solutions inject new momentum into the construction of chemical parks

Redis 之布隆过滤器

冶金物理化学复习 --- 气-液相反应动力学

The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem

个人写的一个文件上传工具网站
随机推荐
Openjudge: stone scissors cloth
openjudge:矩阵乘法
IO流的使用
You must configure either the server or JDBC driver (via the ‘serverTimezone)
How about ink cloud?
openjudge:找出全部子串位置
restFul接口使用个人总结
集合框架的操作使用
Pytorch uses maxpool to realize image expansion and corrosion
Localdatetime removes T, and jsonfield is invalid
IDEA使用dev-tool实现热部署
Framework step by step easy-to-use process
SSM project quick build project configuration file
冶金物理化学复习 --- 化学反应动力学基础
Mabtis(一)框架的基本使用
openjudge:病人排队
FusionGAN代码学习(一)
Edge calculation kubeedge+edgemash
Digital twin solutions inject new momentum into the construction of chemical parks
Low illumination image data set