Could not find parameter map org.agent.pojo.User

还是那句老话具体问题就具体分析。首先我出现的这个问题。使用的是ajax来发生数据给action 验证登入的。但是
我也反复检查的检查我的代码,
这里写图片描述

这里写图片描述

报这个参数类型改过过来之后还是报这样的错误,改成parameterType的还是没有效果。
最终在配置文件找到猫腻了,
这里写图片描述

改过整的之后的
这里写图片描述

启动看后台的
这里写图片描述

希望对你的问题能给到帮助。

阅读更多

Could not find result map

08-22

严重: Exception sending context initialized event to listener instance of class org.agent.systeminit.SystemInitnorg.apache.ibatis.builder.xml.IncompleteStatementException: Could not find result map org.agent.dao.user.UserMapper.userListn at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap(MapperBuilderAssistant.java:290)n at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:228)n at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:66)n at org.apache.ibatis.session.Configuration.buildAllStatements(Configuration.java:504)n at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:435)n at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:430)n at org.apache.ibatis.binding.MapperMethod.setupCommandType(MapperMethod.java:188)n at org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:51)n at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:24)n at $Proxy9.getSystemConfigsIsStart(Unknown Source)n at org.agent.service.systemconfig.SystemConfigServiceImpl.getSystemConfigsIsStart(SystemConfigServiceImpl.java:32)n at org.agent.systeminit.SystemInit.contextInitialized(SystemInit.java:37)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)n at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)n at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)n at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)n at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)n at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)n at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)n at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)n at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)n at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)n at org.apache.catalina.core.StandardService.start(StandardService.java:516)n at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)n at org.apache.catalina.startup.Catalina.start(Catalina.java:566)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)n at java.lang.reflect.Method.invoke(Method.java:597)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)nCaused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for org.agent.dao.user.UserMapper.userListn at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:595)n at org.apache.ibatis.session.Configuration.getResultMap(Configuration.java:364)n at org.apache.ibatis.builder.MapperBuilderAssistant.setStatementResultMap(MapperBuilderAssistant.java:288)n ... 35 moren2017-8-22 15:34:24 org.apache.catalina.core.StandardContext startn严重: Error listenerStartn2017-8-22 15:34:24 org.apache.catalina.core.StandardContext startn严重: Context [] startup failed due to previous errorsn2017-8-22 15:34:24 org.apache.catalina.core.ApplicationContext lognnn这个是什么问题啊,小白一脸懵逼。。

没有更多推荐了,返回首页