FAQ(15):A query was run and no Result Maps were found for the Mapped Statement 'com.smbms.dao.UserMa

保姆级教程:用R包ggpicrust2搞定PICRUSt2功能预测,从差异分析到热图PCA一键出图 本文提供了一份详细的ggpicrust2使用指南,帮助用户从零开始完成PICRUSt2功能预测数据的差异分析和可视化。通过安装配置、数据导入、差异分析到高级可视化(如热图和PCA)的全流程讲解,即使是初学者也能快速掌握发表级图表的生成技巧。 阅读详情

发生错误--因为返回值没给填上去。

看Log:

org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.smbms.dao.UserMapper.USBI'.  It's likely that neither a Result Type nor a Result Map was specified.
### The error may exist in com/smbms/dao/UserMapper.xml
### The error may involve com.smbms.dao.UserMapper.USBI
### The error occurred while handling results
### SQL: select * from smbms_user where id=?
### Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.smbms.dao.UserMapper.USBI'.  It's likely that neither a Result Type nor a Result Map was specified.
	at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:150)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:141)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:77)
	at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:82)
	at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
	at com.sun.proxy.$Proxy4.USBI(Unknown Source)
	at com.smbms.entities.UserTest.test10(UserTest.java:255)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.smbms.dao.UserMapper.USBI'.  It's likely that neither a Result Type nor a Result Map was specified.
	at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.validateResultMapsCount(DefaultResultSetHandler.java:274)
	at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.handleResultSets(DefaultResultSetHandler.java:180)
	at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64)
	at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
	at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:63)
	at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
	at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
	at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
	at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:148)
	... 29 more

解决:

<select > 标签必须要有返回值!!
原:

	<select id="USBI" >
		select * from smbms_user where id=#{id} 
	</select>

改:

	<select id="USBI" resultType="com.smbms.entities.User">
		select * from smbms_user where id=#{id} 
	</select>








2023年全国职业院校技能大赛网络系统管理赛项模块A:网络构建(样题4)-网络部分解析-附详细代码 阅读详情

相关推荐

创意视觉项目实战:用ESP32-S3+OV5640构建智能图像流系统

本文详细介绍了如何使用ESP32-S3开发板与OV5640摄像头模块构建智能图像流系统。从硬件连接到软件配置,涵盖Arduino环境搭建、图像采集优化、WiFi视频流传输及外设集成,为开发者提供完整的实战指南,助力智能家居和机器人视觉项目开发。

tech5的博客 1291

Mybatis报错: A query was run and no Result Maps were found for the Mapped Statement

Mybatis报错: A query was run and no Result Maps were found for the Mapped Statement 完整报错如下: A query was run and no Result Maps were found for the Mapped Statement ‘com.mapper.CarMapper.CarORM’. It’s likely that neither a Result Type nor a Result Map was spe

xiaodexiaoguai的博客 8926

飞书组织架构同步至LDAP:实现企业应用统一身份认证的实战指南

本文详细介绍了如何将飞书组织架构同步至LDAP,实现企业应用统一身份认证的实战方案。通过飞书开放平台API与LDAP服务的集成,企业可以大幅减少账号管理工作量,提升IT效率。文章涵盖技术架构设计、密码策略、详细配置步骤及自动化同步实现,特别适合需要统一认证体系的中大型企业。

weixin_29172201的博客 332

A query was run and no Result Maps were found for the Mapped Statement

记录这次项目中出现的异常 起初我的 SQL语句写的 抛出的异常:A query was run and no Result Maps were found for the Mapped Statement 原因:这是因为查询的结果集没有书写返回的类型resultType/resultMap 更正:

papima的博客 1万+

【UE5 C++开发指南】从零配置Visual Studio 2022开发环境

本文详细指导如何从零开始为UE5 C++开发配置Visual Studio 2022环境。文章强调了VS2022与UE5的深度兼容性,并逐步讲解了社区版下载、核心工作负载(如“使用C++的游戏开发”)与组件安装、界面优化、专属工具设置以及首个C++项目的创建与验证流程,帮助开发者高效搭建专业开发环境。

weixin_29016865的博客 392

别再死磕DH参数了!用MATLAB Robotics Toolbox + SOLIDWORKS搞定六轴机械臂仿真(附避坑指南)

本文详细介绍了如何利用MATLAB Robotics Toolbox和SOLIDWORKS进行六轴机械臂仿真,避免常见的DH参数错误和模型导出问题。通过实战指南和避坑技巧,帮助工程师实现从三维建模到运动学仿真的无缝衔接,提升仿真效率和准确性。

weixin_27066963的博客 394

Mybatis 报错:A query was run and no Result Maps were found for the Mapped Statement ‘com.wanuw.mapper.

A query was run and no Result Maps were found for the Mapped Statement 'com.wanuw.mapper.EmpMapper.selectAll'. It's likely that neither a Result Type nor a Result Map was specified.解决方法

ytgytg28的博客 2482

YOLOv12改进策略【Neck】| CGA Fusion:内容引导的注意力融合模块,空间权重引导的多模态特征自适应融合

本文记录的是利用CGA Fusion 模块改进 YOLOv12 的多模态融合部分。(Content-Guided Attention Fusion)通过内容引导注意力生成空间权重,引导高低层特征的自适应融合。本文利用模块,通过内容引导注意力生成空间权重,自适应地融合两个模态的特征,在特征融合阶段实现跨模态语义对齐与噪声抑制,增强对不同模态互补特征的利用能力,从而提升模型在多模态场景下的检测鲁棒性与准确性。DEA-Net: Single image dehazing based on detail-enhan

Limiiiing的博客 433

A query was run and no Result Maps were found for the Mapped Statement ‘com.woniu.mapper.UserMapper.

A query was run and no Result Maps were found for the Mapped Statement 'com.woniu.mapper.UserMapper.selectAllUsers'. It's likely that neither a Result Type nor a Result Map was specified.

weixin_55229531的博客 5万+

ZooKeeper 实战:使用 Docker Compose 部署 ZooKeeper 集群

ZooKeeper是一个开源的分布式协调服务,用于管理大型分布式系统中的数据。它由Apache软件基金会提供,最初是Hadoop的一个子项目,但后来发展成为一个独立的顶级项目。ZooKeeper提供的一致性协调服务对于构建分布式应用和服务非常重要,特别是在需要精确的领导选举、配置管理、命名服务、分布式同步和提供分布式锁等功能时。

SmartSi 1541

超临界二氧化碳发电技术深度解析

超临界二氧化碳发电技术正在突破传统热电转换的物理边界。作为新一代发

硬核科技 602

问题记录-A query was run and no Result Maps were found for the Mapped Statement..

A query was run and no Result Maps were found for the Mapped Statement… 1.报错信息 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Stateme

weixin_45263613的博客 4381

智能手表 BOM 表与版本管理记录

试产与量产阶段 智能手表 BOM 表与版本管理记录

hoony123的博客 1053

mybatis报错:A query was run and no Result Maps were found for the Mapped Statement

今天编辑mybatis的xml文件,出现如下错误: 程序出现异常[A query was run and no Result Maps were found for the Mapped Statement  '***'.  It's likely that neither a Result Type nor a Result Map was specified. at org.mybatis

10万+

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

A query was run and no Result Maps were found for the Mapped Statement 'com.dao.CommentDao.reviewtot

A query was run and no Result Maps were found for the Mapped Statement ‘com.dao.CommentDao.reviewtotaldata’. It’s likely that neither a Result Type nor a Result Map was specified. 这个是由于在你的sql语句里面没有...

JGnewbie的博客 4560

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

出现A query was run and no Result Maps were found for the Mapped ...问题

出现A query was run and no Result Maps were found for the Mapped ...问题

以为很难 601

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

Mybatis报错—— A query was run and no Result Maps were found for the Mapped Statement

Mybatis报错—— A query was run and no Result Maps were found for the Mapped Statement 。。。 It’s likely that neither a Result Type nor a Result Map was specified.

kingscoming的博客 8124

mybatis执行抛异常:A query was run and no Result Maps were found for the Mapped Statement

目录异常信息原因解决 异常信息 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.xxx.statistic.reports.mapper.WebsiteBaseDataMapper.co

weixin_43118901的博客 463

A query was run and no Result Maps were found for the Mapped Statement ‘******’. It’s likely that ne

A query was run and no Result Maps were found for the Mapped Statement ‘******’. It’s likely that neither a Result Type nor a Result Map was specified解决方法 问题描述 在进行springboot项目的时候,浏览器页面显示405报错 idea下显示 org.apache.ibatis.executor.ExecutorException: A query

weixin_53331942的博客 414

Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found f

错误描述 Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.shiyaxin.dao.IUserDao.saveUser!selectKey'. It's likely that neith...

ShiXinXin_Harbour的博客 758

A query was run and no Result Maps were found for the Mapped Statement........

该错误类型为: A query was run and no Result Maps were found for the Mapped Statement ‘org.com.mybatisMapper.goodsMapper.queryOrderById’. It’s likely that neither a Result Type nor a Result Map was specified 错误原因: 在使用mybatis的时候忘了给查询语句设置返回类型了,设置一下即可 ...

Myueye的博客 412

mybatis 没有结果映射, a query was run and no Result Maps were found for the mapped statement.

mybatis 没有结果映射如何解决: 异常报错如下: ### Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.jin.mapper.UserMapper.getUserById'. It's likely that neither a Re..

m0_53753920的博客 1790

Spring boot mapper 报错 A query was run and no Result Maps were found for the Mapped Statement

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.htu.project001....

稷下学员的笔记博客 620

A query was run and no Result Maps were found for the Mapped Statement ‘com.glp.dao.UserMapper

org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.glp.dao.UserMapper.findAllRecord’. It’s likely that neither a Result Type nor a Result Map was specified. 只要是select语句,我们就需要给定具体的数据返回

长不大的大灰狼 1324
上一篇: FAQ(14):Type interface com.test.dianzi.dao.spare_partsDao is not known to the MapperRegistry.
下一篇: Mybatis(4):映射文件与接口代码的传参,使用@Param 注解用法
后台技术汇
博客等级 码龄11年 670粉丝 531原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

后台技术汇

对你的帮助,是对我的最好鼓励。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值