随笔(mybatis)——Error getting nested result map values for ''.
来源:互联网 发布:离线背单词软件 编辑:程序博客网 时间:2024/06/06 02:44
作为初学者,今天在练习有关 mybatis 的 与数据库表 一对多映射时,出现了一个错误,
报错如下:
Error getting nested result map values for 'user_inf'. Cause: Java.sql.SQLException: Cannot convert value ......
并伴有错误:
Error getting nested result map values for 'user_inf'.
经过检查 该错误是对象在与表映射时,某对象类的属性的数据类型与表中对应数据类型不匹配导致;例如,我创建了 一个sudent类,在该类中定义了:
private int id;
private String name;
而在 表中的name 类型设置为int或者其他时,在进行映射时得不到该种数据就会报以上的错误。
阅读全文
0 0
- 随笔(mybatis)——Error getting nested result map values for ''.
- Error getting nested result map values for 'user_inf'. Cause: java.sql.SQLException: Cannot convert
- Error getting nested result map values for 'company'. Cause: java.sql.SQLException: Invalid value fo
- Mybatis报错----result Map
- Mybatis——Invalid bound statement (not found)-Could not find result map java.lang.Integer
- Mybatis 错误:Result Maps collection does not contain value for java.util.Map
- Getting "Debug Info" for a Sharepoint error!
- values-v24 Error for android studio
- Mybatis报错—— A query was run and no Result Maps were found for the Mapped Statement
- iOS开发之SQLite--C语言接口规范(四) —— Result Values From A Query
- Getting “org.hibernate.TransactionException: nested transactions not supported” error when deleting
- Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExce
- Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyExc
- Unexpected error while running MyBatis Generator. Exception getting JDBC Driver
- Getting Error
- mybatis IncompleteElementException:Could not find result map java.lang.String
- mybatis报Could not find result map java.lang.String
- Mybatis Could not find result map XXXX int
- Ubuntu下vim打开文件时,提示请按ENTER或其它命令继续
- 数据表中主键、外键和索引的区别?
- USACO-Section 1.3 Ski Course Design Lock[...]
- display:flex 意思是弹性布局
- UDPSender 一个基于NIO的UDP发送器/接收器
- 随笔(mybatis)——Error getting nested result map values for ''.
- TCP为什么是三次握手?
- OpenGL蓝宝书源码学习(八)第四章——SphereWorld.cpp
- 快速排序
- C++的RMQ的代码实现
- hadoop学习笔记--6.MapReduce的初识
- 阿里巴巴云服务器ECS外网无法访问IIS
- java中四种引用类型
- TensorFlow的训练模型在Android和Java的应用及调用