本文主要是介绍XML fragments parsed from previous mappers already contains value for xxxxxxxx,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错信息
Caused by: java.lang.IllegalArgumentException: XML fragments parsed from previous mappers already contains value for com.jeeplus.modules.declare.dao.DeclareMattersDao.statisticalat org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:833)at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:1)at org.apache.ibatis.builder.xml.XMLMapperBuilder.sqlElement(XMLMapperBuilder.java:397)at org.apache.ibatis.builder.xml.XMLMapperBuilder.sqlElement(XMLMapperBuilder.java:387)at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:141)... 79 more
一、确定大致方向,提取重点信息
XML fragments parsed from previous mappers already contains value for com.jeeplus.modules.declare.dao.DeclareMattersDao.statistical。大致翻译得知:在DeclareMattersDao对应的XML中“statistical”已经包含,即已存在
二、发现问题根本
找到对应XML文件,全局搜索“statistical”,发现有两处“statistical”(如下图所示)
三、解决错误
去重:删除一个重复的“statistical”即可
这篇关于XML fragments parsed from previous mappers already contains value for xxxxxxxx的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!