XML fragments parsed from previous mappers already contains value for xxxxxxxx

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"

 

Published 77 original articles · 100 likes · 70,000+ views

Guess you like

Origin blog.csdn.net/super_DuoLa/article/details/103835716