当前位置:网站首页>Error building SqlSession问题
Error building SqlSession问题
2022-06-29 17:55:00 【灵主罪人】
1、mybatis核心文件没有配置好
甚至是mapper的位置是否放置好也会导致
所以注意自己配置时候的核心文件是否正确
2、返回的结果类型没配置好
返回结果的权限在设置的时候应当选择该包所在的位置,如果配置了类的别名,也可以用类的别名。这样可以减少代码的沉余
3、拼写错误
不小心修改到了核心文件中的原本name属性,导致不能解析该标量

很多时候。我们都会不小心点到他本身里面的标识,导致配置出现的时候,核心文件读取不到已经规划好的标识
这种问题,大多数属于自己的粗心大意造成的,多注意点就好
list<map<String,integer>>错误
"msg": "Could not write JSON: java.lang.Long cannot be cast to java.lang.Integer; nested exception is com.fasterxml.jackson.databind.JsonMappingException: java.lang.Long cannot be cast to java.lang.Integer (through reference chain: java.util.ArrayList[0]->java.util.HashMap[\"afZrs\"])",
"code": 500
}
把integer改成object试一下
原理:
nested exception is org.apache.ibatis.binding.BindingException

为此要加上数据进行使用
边栏推荐
- 上班可以做副业
- Goldfish rhca memoirs: do447 building advanced job workflow -- using fact cache to improve performance
- Visio annotation, annotation location
- You can do sideline work
- Let's start with a bug that was cheated by the app store
- Shell tutorial circular statements for, while, until usage
- Uploading files using AutoIT
- Fill in the next right node pointer of each node [make good use of each point - > reduce the space-time complexity as much as possible]
- Top 30 open source software
- 小白月赛51 补题 E G F
猜你喜欢

VB. Net read / write NFC ntag tag source code

第42期:MySQL 是否有必要多列分区

QQ如何开通在线客服

小白月赛51 补题 E G F

国内酒店交易DDD应用与实践——理论篇

Niuke Xiaobai monthly race 52 E group logarithmic sum (inclusion exclusion theorem + dichotomy)

Wechat applet development reserve knowledge

Xiaomai technology x hologres: high availability of real-time data warehouse construction of ten billion level advertising

Premature end of script headers 或 End of script output before headers
![Split palindrome string [dp + DFS combination]](/img/7b/221b000984977508f849e19802c2c2.png)
Split palindrome string [dp + DFS combination]
随机推荐
The soft youth under the blessing of devcloud makes education "smart" in the cloud
MySql存储过程循环的使用分析详解
MaxCompute Studio
On adding and subtracting dates
Adobe Premiere Basics - general operations for editing material files (offline files, replacing materials, material labels and grouping, material enabling, convenient adjustment of opacity, project pa
国外LEAD赚钱,做个网站真的很简单
shell教程之循环语句for,while,until用法
[tcapulusdb knowledge base] tcapulusdb doc acceptance - transaction execution introduction
Image migration and data migration synchronization of old and new servers with different Alibaba cloud accounts
How QQ opens online customer service
MySQL数据库每日备份并定时清理脚本
分布式 | 几步快速拥有读写分离
工作流模块Jar包启动报错:liquibase – Waiting for changelog lock….
Adobe Premiere基础-炫酷文字快闪(十四)
3h精通OpenCV(六)-图像堆叠
[网鼎杯 2020 青龙组]AreUSerialz
POJ 1975 (transitive closure)
Wechat applet development reserve knowledge
Niuke small Bai monthly race 52 D ring insectivorous (feet +st table)
Adobe Premiere基础-批量素材导入序列-变速和倒放(回忆)-连续动作镜头切换-字幕要求(十三)

返回结果的权限在设置的时候应当选择该包所在的位置,如果配置了类的别名,也可以用类的别名。这样可以减少代码的沉余