There is no getter for property named ‘username‘ in ‘class com.kuang.entity.User‘“
mapper.xml文件如下:
<mapper namespace="com.kuang.dao.UserDAO"><select id="login" parameterType="User" resultType="User">select * from user where name=#{username} and password=#{password}</select>
</mapper>
User实体如下:
@Data
@Accessors(chain = true)
public class User {private String id;private String name;private String password;
}
实体的属性是name,而mapper的xml中是#{username},实体中没有username属性所以报错
There is no getter for property named ‘username‘ in ‘class com.kuang.entity.User‘“相关推荐
- 源码分析 There is no getter for property named '*' in 'class java.lang.String
2019独角兽企业重金招聘Python工程师标准>>> There is no getter for property named '*' in 'class java.lang.S ...
- Mybatis问题:There is no getter for property named 'unitId' in 'class java.lang.String'
Mybatis遇到的问题 问题: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.re ...
- 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'...
现在流行的 ssm(spring + struts2 + myBatis) 持久层的mybatis是需要配置映射器的,找了个demo连接的数据库是MySQL 于是就修改了一下弄成了连接Oracle的 ...
- 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'
现在流行的 ssm(spring + struts2 + myBatis) 持久层的mybatis是需要配置映射器的,找了个demo连接的数据库是mysql 于是就修改了一下弄成了连接oracle的 ...
- There is no getter for property named 'XXX' in class 'aaa.bbb.ccc'(终极骚操作的解决方法)...
使用SpringBoot整合Mybatis时,遇到了像标题的异常,博主当时是用Bean类对象作为参数的,所以百度了很久都没有建设性答案.贴一下报错的xxxDao文件和xxxMapper.xml文件: ...
- Exception:There is no getter for property named ‘qo‘ in ‘class cn.xxxxxx.rbac.qo.XxxxQo 的两种错误可能及解决方案
1. 错误信息 HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisS ...
- here is no getter for property named 解决方案及问题分析
SSM框架中没有 There is no getter for property named 'name' in 'class com.itheima.domain.UserVO' 翻译成中文的大致意 ...
- 3、Mybatis-Plus异常之There is no getter for property named ‘ew‘ in ‘class解决方案
项目使用技术: SpringBoot2.7.5+MyBatis-plus5.1.2 项目使用场景: 其中Dao层mapper继承com.baomidou.mybatisplus.core.mapper ...
- There is no getter for property named 'xxx' in 'class.....'
mybatis There is no getter for property named 'xxx' in 'class.....' 在确定该字段在entity中添加了get set方法之后,通常 ...
最新文章
- 周五话运营 | 和用户谈一段不分手的恋爱(留存分析)
- c++ array 模板类使用
- 百度网页移动端html,百度移动端开始用网站品牌名代替网址显示
- Attempt to write to a read-only database Sqlite
- CVPR 2019全部论文下载!
- 设计类网站|超实用的工具型网站!
- JAVA 第1课 开始前的准备
- 全国计算机二级公共基础知识电子版,全国计算机二级公共基础知识汇总.pdf
- 网上交易安全-使用JAVA调用U盾进行客户认证
- Linux基础命令的那些事儿(1)
- JZOJ 6310.glo【LIS】【线段树】
- 【杂谈】研究生最后一年学习计划
- 2021-5-11 atcoder C - Replacing Integer
- CVE PoC的精选列表(三)
- Qt国际化详细步骤(手把手教你如何国际化)
- 带大家读python数据分析一书(三)
- 【Unity】判断视频是否播放完毕
- 图书管理系统(C文件读、存)
- 陀螺仪重力感应(the gyroscope gravity induction)and (core Motion Framework)
- A2-02-24.DML- Inserting Data into A Table Using MySQL INSERT Statement
热门文章
- AMD 硬解码开发(四)之边摸索边编译samples
- 蚂蚁金服蒋国飞:区块链商用时代正在加速到来
- 视频编码技术 -1.2色彩原理
- EDM电子邮件营销策划常用创意
- 企业如何搭建属于自己的协同办公管理系统?
- vue重复访问同一路由报错
- 杭州裸辞女孩打脸多少领导:对不起,90后不好骗
- UML类图---类与类图的解析
- 我的世界服务器怎么修改id,我的世界1.13-pre-5发布 内部ID重命名
- java异常标记_如何修复'java.io.IOException异常:toDerInputStream在上启动spring应用程序时拒绝标记类型60'本地主机:8443...