nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for proper

版权声明:博客对我来说是记忆的笔记和知识的分享~非常感谢博客大神的帮助,若有无意侵权,请您联系我,谢谢^_^!转载请声明出处: https://blog.csdn.net/qq_36698956/article/details/87908655

nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'Patient_Name' in 'class com.emr.module.domain.Operation'

注意看:这里是Patient_Name,这个字段应该跟实体类的字段名称是一样的才对!

而实体类中却是 groupId !

解决方法:

修改mapper.xml文件中:

1. <if test="Patient_Name != null "> 修改为: <if test="bingrName!= null ">

2. and per.Patient_Name = #{bingrName}  中的#{bingrName} 也必须跟html中的input标签name属性一致才行

猜你喜欢

转载自blog.csdn.net/qq_36698956/article/details/87908655
今日推荐