当前位置:网站首页>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

为此要加上数据进行使用
边栏推荐
- EasyCVR部署服务器集群时,出现一台在线一台不在线是什么原因?
- Proxmox VE Install 7.2
- Goldfish rhca memoirs: do447 building advanced job workflow -- using fact cache to improve performance
- 3H proficient in opencv (VII) - color detection
- Parental delegation mechanism
- Does rapid software delivery really need to be at the cost of security?
- Image feature computation and representation -- content based image retrieval
- Relationship among controller, service and Dao
- Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image
- Mac installation php7.2
猜你喜欢
![[target tracking] |stark configuration win OTB](/img/29/a6b3b99b7d2349499aede9e76ab29a.png)
[target tracking] |stark configuration win OTB

Adobe Premiere基础-炫酷文字快闪(十四)

QQ如何开通在线客服

Serial port experiment based on stm32f103zet6 library function

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

Professor of Cambridge University: eating breakfast often is harmful and dangerous. - you know what

Detailed introduction and Simulation of bitmap

两种Controller层接口鉴权方式

Adobe Premiere基礎-聲音調整(音量矯正,降噪,電話音,音高換擋器,參數均衡器)(十八)

通过 hosts文件配置本地域名
随机推荐
Force deduction daily question 06.29 add two numbers
让 Google 搜索到自己的博客
金鱼哥RHCA回忆录:DO447构建高级作业工作流--使用事实缓存提高性能
MaxCompute Studio
MySql存储过程循环的使用分析详解
等保测评结论为差,是不是表示等保工作白做了?
POJ 1975 (传递闭包)
3h精通OpenCV(八)-形状检测
两种Controller层接口鉴权方式
3h精通OpenCV(五)-透视变换
Xiaobai yuesai 51 supplement e g f
Selenium file upload method
Lodash deep copy usage
SSH protocol learning notes
双亲委派机制
kubekey2.2.1 kubernetes1.23.7离线包制作+harbor部暑并上传镜像
Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题
Does rapid software delivery really need to be at the cost of security?
Distributed | several steps of rapid read / write separation
[webdriver] upload files using AutoIT

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