caused By:com.ibatis.common.xml.NodeletException:Error parsing XML. Cause:java.lang.RuntimeException:Error parsing XPath '/sqlmapconfig/sqlmap '. Cause:com.ibatis.common.xml.NodeletException:Error parsing XML. Cause:java.lang.RuntimeException:Error parsing XPath '/sqlmap/select '. Cause:com.ibatis.sqlmap.client.SqlMapException:There is already a statement named search in this sqlmap.
At Com.ibatis.common.xml.NodeletParser.parse (nodeletparser.java:53)
At Com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse (sqlmapconfigparser.java:86)
This is because the namespace is not enabled, causing the same SQL ID to exist
The solution is as follows:
<settings cacheModelsEnabled="true" enhancementEnabled="true"
lazyLoadingEnabled="true" errorTracingEnabled="true" maxRequests="32"
maxSessions="10" maxTransactions="5" useStatementNamespaces="true" />
Com.ibatis.sqlmap.client.SqlMapException:There is already a statement named search in this sqlmap.