原文地址:https://blog.youkuaiyun.com/loongshawn/article/details/51656699
异常排查
XML中是这样写的
<sql id="statisticItemChildren2DemandColumn">
date,
number_pass,
number_reject,
rate
</sql>
<sql id="statisticItemChildren2DemandColumn">
id,
date,
number_pass,
number_reject,
rate
</sql>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
由于DemandStatisticMapper.xml文件中存在重名对象,保持名称不要一样即可正常启动。
<sql id="statisticItemChildren2DemandColumn">
date,
number_pass,
number_reject,
rate
</sql>
<sql id="statisticItemChildren2Demand1Column">
id,
date,
number_pass,
number_reject,
rate
</sql>
异常产生原因
我这儿的原因是由于Mybaties多次逆向工程生成的文件导致mapper.xml有些ID重复了