mybatisplus
冲啊Javascripit
这个作者很懒,什么都没留下…
展开
-
Mytatis初始化时 mapper 未绑定 错误
Invalid bound statement (not found):。。。原创 2022-01-14 15:20:10 · 155 阅读 · 0 评论 -
mybatisplus(1) 关于实体类插入数据库
实体类中id类型、自增类型数据库字段属性是否成功总结AUTO+IntegerAUTO +int成功插入数据库中的字段是从1开始自增的ASSIGN+IntegerAUTO +int失败ASSIGN插入主键,是数字类型的。长度是19位。但是数据库中(int 11)、代码实体类(Integer 10)中的int达不到对应的要求ASSIGN_ID+Longvarchar(如果是int的话,那么长度不够,需要使用bigInt)成功可以搭配数据库的auto,但是在插...原创 2021-03-10 15:25:56 · 1670 阅读 · 0 评论 -
mybatis-plus 主键自动增加遇到的问题
错误的描述是这样的:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘describe’我一直以为是mybatis-puls因为自身的原因,不能生成id。1.我给主键备注@TableId(value = “id”,type = IdType.ASSIGN_UUID),给表明备注@Tabl原创 2021-01-27 20:00:28 · 1553 阅读 · 0 评论 -
mybatis-plus error(2)Invalid bound statement (not found)
标题mybatis-plus踩坑 (2)完整的错误描述是这样的:Invalid bound statement (not found): com.server.mapper.XxxxMapper.getList无效的绑定语句,后面是一个mapper里面的方法。在这个异常下1.我没有发现xml中的别名与实体类中的名字不对应2.没有xml中namespace地址与mapper不对应3.方法中,返回的类型resultType不对应4.实体类与查询的表明不对应最后发现是xml或者是mapper的后缀原创 2021-02-09 17:12:52 · 78 阅读 · 0 评论