当前位置:网站首页>org. apache. ibatis. exceptions. PersistenceException:
org. apache. ibatis. exceptions. PersistenceException:
2022-06-25 21:22:00 【vancomycin】
stay mybatis Encountered in framework org.apache.ibatis.exceptions.PersistenceException problem , Because it is common in test mapping files , If you make a small mistake, it will happen , So I summarize it for myself , Of course, I hope it can help you !!!
analysis
There's this org.apache.ibatis.exceptions.PersistenceException Most of the problems are that the mapping file cannot be found , This and not following mybatis Of mapper Agent configuration specification
for example :
1、 There is a problem reading and writing the file , The system cannot find this file
2、mapper Interface and mapping mapper.xml Whether the names of are consistent , Whether it is in the same directory .
3、SqlMapConfig.xml Profile loading mapper There is an error in the path of the interface file ( There are generally two kinds of tests , First scan
class <mapper class=:“ Class path and class name ”/> The second batch scan load : Select scan package < package name=“ Package name ” / >)
4、 Use mapper Agent method development mapper Interface mapper.xml Medium namespace And mapper The classpath of the interface is the same
Same as , Forget to write namespace This exception will also be reported .
边栏推荐
- The correct way to clear the cache of the computer. The computer will not get stuck immediately after changing. practical
- 启牛证券开户安全嘛?
- What is machine learning? (Fundamentals)
- [nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
- Send a more awesome website, which can convert curl commands into code in any language
- OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
- Nmap is simple and practical
- Is it safe for qiniu school to open a securities account?
- On merging and sorting
- Command 'GCC' failed with exit status 1 when PIP install mysqlclient
猜你喜欢
Explain memcached principle in detail
Soft test intermediate simple notes
Installing mysql8 under centos8
How to write an infinite loop
Renren mall locates the file according to the route
Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
01 network basics
js(3)
[deep learning series] - visual interpretation of neural network
How to solve the problem of flash write protection in STM32?
随机推荐
OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
Shell syntax
Using two stacks to realize the function of one queue?
Lesson 1 Preparation
Command 'GCC' failed with exit status 1 when PIP install mysqlclient
Insert and update each database
Nmap is simple and practical
Unable to connect to the server remotely locally using the Jupiter notebook
Idea implements hot deployment
MySQL trigger
Solve the parameter problem that laravels cannot receive wechat callback
Jmeter- (I) installation of interface test
JS__ Inheritance mode, namespace, object enumeration__ Duyi
Legal mix of settlements (utf8mb4_0900_ai_ci, implicit) and (utf8mb4_general_ci, implicit) error resolution
OBD Position Overview
Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
Cross project measurement is a good helper for CTOs and PMOS
Big end and small end
[summary] 2021unctf Campus (cry & MISC)
2022年启牛学堂证券开户安全嘛?