![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mybatis
一款优秀的持久层框架,它支持定制化 SQL、存储过程以及高级映射
大风车转悠悠
其实,我是想开家书店的
展开
-
Mybatis逆向生成代码
使用mybatis逆向自动生成数据库操作代码原创 2023-09-14 19:42:13 · 1887 阅读 · 0 评论 -
MyBatis【You have an error in your SQL syntax; check the manual that corresponds to your......】
原因一:sql语句多符号原因二:字段名写错字段写错了,和数据库中字段名不一致原因三:SQL语句的顺序不对尤其是在写动态SQL时,order,where,limit这些关键字的顺序原创 2021-05-17 21:37:45 · 517 阅读 · 0 评论 -
MyBatis主键自增和【java.sql.SQLException: Field ‘id‘ doesn‘t have a default value】
mapper添加两个属性:useGeneratedKeys="true" keyProperty="id"<insert id="add" parameterType="Project" useGeneratedKeys="true" keyProperty="id"> insert into project (name, description, level, picture, deleted, create_time, update_time, version)原创 2021-05-17 17:09:46 · 565 阅读 · 1 评论