mybatis使用bug:org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map java

org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map java.util.Map
at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:319) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:283) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:107) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.session.Configuration.buildAllStatements(Configuration.java:698) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.session.Configuration.hasStatement(Configuration.java:668) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.session.Configuration.hasStatement(Configuration.java:663) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:180) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:43) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) ~[mybatis-3.2.8.jar:3.2.8]
at com.sun.proxy.$Proxy83.queryMemberInfoByParam(Unknown Source) ~[na:na]
at hsf.fmhealth.manager.user.XXManager.queryXX(FamilyMembersManager.java:273) ~[family-doctor-service-1.2.0-SNAPSHOT.jar:na]
at hsf.fmhealth.manager.user.XXManager$$FastClassBySpringCGLIB$$67164a02.invoke() ~[spring-core-3.2.9.RELEASE.jar:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:629) ~[spring-aop-3.2.9.RELEASE.jar:3.2.9.RELEASE]
at hsf.fmhealth.manager.user.XXManager$$EnhancerBySpringCGLIB$$af0bc8a8.queryXX() ~[spring-core-3.2.9.RELEASE.jar:na]
at hsf.fmhealth.service.metaq.DiabetesMetaQServiceImpl.sevenDaysReportMultiSendPush(DiabetesMetaQServiceImpl.java:89) ~[family-doctor-service-1.2.0-SNAPSHOT.jar:na]
at hsf.fmhealth.service.metaq.DiabetesMetaQServiceImpl.router(DiabetesMetaQServiceImpl.java:218) ~[XX-service-1.2.0-SNAPSHOT.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at hsf.fmheath.util.MessageConsumer$MyInvocationHandler.invoke(MessageConsumer.java:134) [XX-service-1.2.0-SNAPSHOT.jar:na]
at com.sun.proxy.$Proxy100.router(Unknown Source) [na:na]
at hsf.fmheath.util.MessageConsumer$1.consumeMessage(MessageConsumer.java:84) [XX-service-1.2.0-SNAPSHOT.jar:na]
at com.alibaba.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:142) [rocketmq-client-3.2.6.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_79]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.lang.IllegalArgumentException: Parameter Maps collection does not contain value for java.util.Map
at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:797) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.session.Configuration.getParameterMap(Configuration.java:570) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementParameterMap(MapperBuilderAssistant.java:317) ~[mybatis-3.2.8.jar:3.2.8]

... 30 common frames omitted



错误原因:该查询在外面封装了一个hashMap的入参集合,在xml中配置时应该入参属性应该用parametertype ,起初写成了parameterMap

你可能感兴趣的:(问题整理)