当前位置:网站首页>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 .
边栏推荐
- Weed FS stress test
- Code program related problems troubleshooting directory
- C language soul torture: do you know the difference between the two?
- Big end and small end
- [deep learning series] - visual interpretation of neural network
- Command 'GCC' failed with exit status 1 when PIP install mysqlclient
- Vbpr (visual Bayesian personalized ranking) paper summary
- Cvpr2019 | the latest cvpr2019 papers are the first to read!
- IPv4 and IPv6 (powercert animated videos)
- [nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
猜你喜欢

IPv4 and IPv6 (powercert animated videos)

Php7.4 arm environment compilation and installation error invalid 'ASM': invalid operate prefix '%c'

C language dynamic memory allocation

Differences between modems and routers (powercert animated videos)

Jmeter- (II) basic interface and common components for interface testing
![[nailing scenario capability package] smart office phone](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] smart office phone

Xshell mouse configuration

Support JPEG format in GD Library in php7.4

The beginning of manjaro's journey

How to solve the problem of flash write protection in STM32?
随机推荐
[buucry] sensor (Manchester code)
The robotframework executes JS commands to move the mouse from X to y
How to solve the problem of flash write protection in STM32?
The correct way to clear the cache of the computer. The computer will not get stuck immediately after changing. practical
IPv4 and IPv6 (powercert animated videos)
QT method of exiting application (exe)
Xshell mouse configuration
[nailing scenario capability package] video conference (official conference system)
Dbeaver offline installation driver
OLED driver learning based on ssd1306 (I): SSD Chinese command table (handling)
Jmeter- (IV) regular expression for interface testing
What is a subnet mask? (Powercert animated videos)
The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
Is it safe for qiniu school to open a securities account?
OSI notes sorting
ZABBIX foundation details
启牛学堂证券开户安全嘛?
Jmeter- (II) basic interface and common components for interface testing
Insert and update each database
Big end and small end