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‘“相关推荐

  1. 源码分析 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 ...

  2. 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 ...

  3. 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'...

    现在流行的 ssm(spring + struts2 + myBatis)  持久层的mybatis是需要配置映射器的,找了个demo连接的数据库是MySQL 于是就修改了一下弄成了连接Oracle的 ...

  4. 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'

    现在流行的 ssm(spring + struts2 + myBatis)  持久层的mybatis是需要配置映射器的,找了个demo连接的数据库是mysql 于是就修改了一下弄成了连接oracle的 ...

  5. There is no getter for property named 'XXX' in class 'aaa.bbb.ccc'(终极骚操作的解决方法)...

    使用SpringBoot整合Mybatis时,遇到了像标题的异常,博主当时是用Bean类对象作为参数的,所以百度了很久都没有建设性答案.贴一下报错的xxxDao文件和xxxMapper.xml文件: ...

  6. 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 ...

  7. here is no getter for property named 解决方案及问题分析

    SSM框架中没有 There is no getter for property named 'name' in 'class com.itheima.domain.UserVO' 翻译成中文的大致意 ...

  8. 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 ...

  9. There is no getter for property named 'xxx' in 'class.....'

    mybatis  There is no getter for property named 'xxx' in 'class.....' 在确定该字段在entity中添加了get set方法之后,通常 ...

最新文章

  1. 周五话运营 | 和用户谈一段不分手的恋爱(留存分析)
  2. c++ array 模板类使用
  3. 百度网页移动端html,百度移动端开始用网站品牌名代替网址显示
  4. Attempt to write to a read-only database Sqlite
  5. CVPR 2019全部论文下载!
  6. 设计类网站|超实用的工具型网站!
  7. JAVA 第1课 开始前的准备
  8. 全国计算机二级公共基础知识电子版,全国计算机二级公共基础知识汇总.pdf
  9. 网上交易安全-使用JAVA调用U盾进行客户认证
  10. Linux基础命令的那些事儿(1)
  11. JZOJ 6310.glo【LIS】【线段树】
  12. 【杂谈】研究生最后一年学习计划
  13. 2021-5-11 atcoder C - Replacing Integer
  14. CVE PoC的精选列表(三)
  15. Qt国际化详细步骤(手把手教你如何国际化)
  16. 带大家读python数据分析一书(三)
  17. 【Unity】判断视频是否播放完毕
  18. 图书管理系统(C文件读、存)
  19. 陀螺仪重力感应(the gyroscope gravity induction)and (core Motion Framework)
  20. A2-02-24.DML- Inserting Data into A Table Using MySQL INSERT Statement

热门文章

  1. AMD 硬解码开发(四)之边摸索边编译samples
  2. 蚂蚁金服蒋国飞:区块链商用时代正在加速到来
  3. 视频编码技术 -1.2色彩原理
  4. EDM电子邮件营销策划常用创意
  5. 企业如何搭建属于自己的协同办公管理系统?
  6. vue重复访问同一路由报错
  7. 杭州裸辞女孩打脸多少领导:对不起,90后不好骗
  8. UML类图---类与类图的解析
  9. 我的世界服务器怎么修改id,我的世界1.13-pre-5发布 内部ID重命名
  10. java异常标记_如何修复'java.io.IOException异常:toDerInputStream在上启动spring应用程序时拒绝标记类型60'本地主机:8443...