当前位置:网站首页>报错解决Error parsing Mapper XML
报错解决Error parsing Mapper XML
2022-06-10 20:50:00 【阿圣同学】
Error parsing Mapper XML
这个报错本质来说是mapper.xml出现错误
相同的还有 failed resolve xxx.xml等
这里分析一些编写时不会明显爆红,启动报错的问题
1、id冲突
这里出现的冲突有
resultMap
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
<resultMap type="com.cpi.newtouch.business.module.dto.T01comDTO" id="t01agentComMap">
具体的sql
<select id="findBy" >
<update id="findBy">
只要有两个以上的id相同,就会报错,这种一般是因为复制粘贴没注意就会出现,需要认真!
2、返回类型错误
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
<select id="findBy" resultType="t01agentComMap">
像在这里,我返回的是resultMap,但是却写了resultType
同样的还有比如说返回string类型,但我写的是resultMap ,也会报错
3、没有写全类名
<resultMap type="com.newtouch.business.module.dto.T01agentComDTO" id="t01agentComMap">
还是这个resultMap ,我如果写成下面这个样子
<resultMap type="T01agentComDTO" id="t01agentComMap">
就会报错,当然如果配置了相关设置也可以
边栏推荐
- How to realize the marketing purpose of small program integral mall
- Rotate menu 2.0
- App test case
- [untitled] broken item
- 自制Table錶格
- Leetcode advanced road - plus one
- 标配双安全气囊,价格屠夫长安Lumin 4.89万起售
- Summary of common mysql8 commands in centos7 environment
- Abbexa 1,3-dipalmitonin CLIA kit solution
- C language -- 1 c language cognition
猜你喜欢
SQL Server2019安装的详细步骤实战记录(亲测可用)

软件测试工程师是做什么的?

数据库系统概论 ---- 第一章 -- 绪论(重要知识点)

Abbexa cell free DNA kit instructions

2021年平均工资出炉,IT行业不出所料

C language ---5 initial string, escape character and comment

ThinkPHP v6.0.x反序列化漏洞复现

Abbexa acrylamide peg NHS instructions

Abbexa low sample size chicken lysozyme C (Lyz) ELISA Kit

NFT copyright / royalties
随机推荐
防抖和节流
微积分复习1
Shell implements SSH login and executes commands
Qingniao Changping campus of Peking University: can I learn UI with a high school degree?
The process of keyword search in Oracle tables
Practical | how to use burp suite for password blasting!
[nk] Niuke monthly race 51g calculation problem
在模仿学习中进步的智能机器人
Leetcode advanced path - the first unique character in a string
What do software test engineers do?
NFT copyright / royalties
Interpreting the new ecology of education in maker space
标配双安全气囊,价格屠夫长安Lumin 4.89万起售
MySQL insère les résultats de la requête dans une autre table
Rotate menu 2.0
C language -- 8 familiar keywords
Abbexa acrylamide peg NHS instructions
Signal and system review 1
入行须知:运维需要懂编程吗?
Constructing the implementation strategy of steam education for children