Error message
Caused by: java.lang.IllegalArgumentException: XML fragments parsed from previous mappers already contains value for com.jeeplus.modules.declare.dao.DeclareMattersDao.statistical
at 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
1. Determine the general direction and extract key information
XML fragments parsed from previous mappers already contains value for com.jeeplus.modules.declare.dao. DeclareMattersDao.statistical . Roughly translated and learned that: "statistical" has been included in the XML corresponding to DeclareMattersDao , that is, it already exists
2. Found the problem
Find the corresponding XML file, search for "statistical" globally, and find two "statistical" (as shown below)
Third, solve the error
Deduplication: delete a duplicate "statistical"