1, error message
caused By:org.apache.ibatis.builder.BuilderException:Error parsing Mapper XML. Cause:java.lang.IllegalArgumentException:Mapped statements Collection already contains value for Imageclassifytrain.countimageclassifytrain at Org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement (xmlmapperbuilder.java:120) at Org.apache.ibatis.builder.xml.XMLMapperBuilder.parse (xmlmapperbuilder.java:92) at Org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory (sqlsessionfactorybean.java:410) at Org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet (sqlsessionfactorybean.java:295) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( abstractautowirecapablebeanfactory.java:1612) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1549) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBEAN (abstractautowirecapablebeanfactory.java:539) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:475) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:228) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:684) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:760) at Org.springframework.context.support.AbstractApplicationContext.refresh(abstractapplicationcontext.java:482) at Org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext ( frameworkservlet.java:658) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:624) at Org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext ( frameworkservlet.java:672) at Org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext ( frameworkservlet.java:543) at Org.springframework.web.servlet.FrameworkServlet.initServletBean ( frameworkservlet.java:484) at Org.springframework.web.servlet.HttpServletBean.init (httpservletbean.java:136) at Ja Vax.servlet.GenericServlet.init (genericservlet.java:244) at Org.eclipse.jetty.servlet.ServletHolder.initServlet ( servletholder.java:637) at Org.eclipse.jetty.servlet.ServletHolder.getServlet (servletholder.java:498) at Org.eclip Se.jetty.servlet.ServletHolder.ensureInstance (servletholder.java:785) AT Org.eclipse.jetty.servlet.ServletHolder.prepare (servletholder.java:770) at Org.eclipse.jetty.servlet.ServletHandler.doHandle (servlethandler.java:530) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (scopedhandler.java:143) at Org.eclipse.jetty.security.SecurityHandler.handle (securityhandler.java:548) at Org.eclipse.jetty.server.handler.HandlerWrapper.handle (handlerwrapper.java:132) at Org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (scopedhandler.java:190) at Org.eclipse.jetty.server.session.SessionHandler.doHandle (sessionhandler.java:1595) at Org.eclipse.jetty.server.handler.ScopedHandler.nextHandle (scopedhandler.java:188) at Org.eclipse.jetty.server.handler.ContextHandler.doHandle (contexthandler.java:1253) at Org.eclipse.jetty.server.handler.ScopedHandler.nextScope (scopedhandler.java:168) at Org.eclipse.jetty.servlet.ServletHandler.doScope (servlethandler.java:473) at Org.eclipse.jetty.server.session.SessionHandler.doScope(sessionhandler.java:1564) at Org.eclipse.jetty.server.handler.ScopedHandler.nextScope (scopedhandler.java:166) at Org.eclipse.jetty.server.handler.ContextHandler.doScope (contexthandler.java:1155) at Org.eclipse.jetty.server.handler.ScopedHandler.handle (scopedhandler.java:141) at Org.eclipse.jetty.server.handler.HandlerWrapper.handle (handlerwrapper.java:132) at Org.eclipse.jetty.server.Server.handle (server.java:564) at Org.eclipse.jetty.server.HttpChannel.handle ( httpchannel.java:317) at org.eclipse.jetty.server.HttpConnection.onFillable (httpconnection.java:251) at Org.eclips E.jetty.io.abstractconnection$readcallback.succeeded (abstractconnection.java:279) at Org.eclipse.jetty.io.FillInterest.fillable (fillinterest.java:110) at Org.eclipse.jetty.io.channelendpoint$2.run ( channelendpoint.java:124) at org.eclipse.jetty.util.thread.Invocable.invokePreferred (invocable.java:128) at org.ec Lipse.jetty.util.thread.invocable$invocableexecutor.invoke (invocable.java:222) at Org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce (eatwhatyoukill.java:294) at O Rg.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce (eatwhatyoukill.java:126) at Org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (queuedthreadpool.java:673) at Org.eclipse.jetty.util.thread.queuedthreadpool$2.run (queuedthreadpool.java:591) at Java.lang.Thread.run ( thread.java:745)
2, the cause of the error
Org.apache.ibatis.builder.BuilderException:Error parsing Mapper XML. Cause:java.lang.IllegalArgumentException:Mapped statements Collection already contains value for Imageclassifytrain.countimageclassifytrain
The same mapper XML map already exists in the MyBatis XML SQL mapping statement, and Imageclassifytrain.countimageclassifytrain already exists.
3. Solutions
(1) Rename this mapper mapping ID