Mybatis异常收集
来源:互联网 发布:自媒体 内容来源 知乎 编辑:程序博客网 时间:2024/06/07 22:26
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'surveyAdminExpandVo' in 'class com.survey.toysrus.model.SurveyAdminExpandVo'
其实这种错误很明显:异常已经告诉我们字段 surveyAdminExpandVo 不再 SurveyAdminExpandVo类中
在看到我的配置文件:
<mapper namespace="com.survey.toysrus.dao.SurveyAdminExpandMapper"> <insert id="insert" parameterType="SurveyAdminExpandVo"> INSERT INTO survey_admin VALUES(NULL, <if test="surveyAdminExpandVo != null"> <if test="surveyAdminExpand.adminname !=null and surveyAdminExpand.adminname !=''"> '${surveyAdminExpand.adminname}', </if> <if test="surveyAdminExpand.password !=null and surveyAdminExpand.password !=''"> '${surveyAdminExpand.password}', </if> NOW(),NOW()) </if> </insert></mapper>
surveyAdminExpandVo
实体类
public class SurveyAdminExpandVo { private SurveyAdmin surveyAdmin; private SurveyAdminExpand surveyAdminExpand; public SurveyAdmin getSurveyAdmin() {return surveyAdmin;}public void setSurveyAdmin(SurveyAdmin surveyAdmin) {this.surveyAdmin = surveyAdmin;}public SurveyAdminExpand getSurveyAdminExpand() {return surveyAdminExpand;}public void setSurveyAdminExpand(SurveyAdminExpand surveyAdminExpand) {this.surveyAdminExpand = surveyAdminExpand;} }
阅读全文
0 0
- Mybatis异常收集
- 异常收集
- 异常收集
- 异常收集
- 异常收集
- mybatis异常
- mybatis异常
- mybatis异常
- mybatis异常
- mybatis异常
- mybatis异常
- mybatis异常
- mybatis错误收集
- mybatis错误收集
- hibernate 异常收集
- javaweb异常收集
- hibernate 异常收集1
- JAVA常见异常收集
- Hbase集群迁移
- java常用IO流简介(一)
- jQuery学习之六---属性
- 让专业变成兴趣之Linux系统运维
- 函数指针与函数指针数组
- Mybatis异常收集
- EXT4文件系统之ext4_fill_super()
- 光照与渲染(一)- 简介
- TensorFlow入门例子(0)
- 光照与渲染(二)- 光照技术
- C++手动扩展
- 光照与渲染(三)- 预先计算的过程
- 光照与渲染(四)- 渲染路径
- 光照与渲染(五)- 色彩空间