![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MyBatis框架
_蒹葭苍苍
Everyone has his own dreams.My dream is to be a computer programmer.I think it's very interesting and exciting for me to work on.With the development of science and technology,people can imagin and swim freely in the world ofcomputers.Computers have become good partners and friends in the daily life
展开
-
MyBatis数据映射及增删改查
SQL映射文件结构1. cache:1.1. 给定命名空间的缓存配置;2. cache-ref:2.2. 其他命名空间缓存配置的引用;3. resultMap:3.3. 是最复杂也是最强大的元素,用来描述如何从数据库结果集中来加载对象;4. sql:4.4. 可被其他语句引用的可重用语句块;5. nsert,update,delete,select:5.5....原创 2018-09-13 11:34:59 · 448 阅读 · 0 评论 -
出现You have an error in your SQL syntax; check the manual that corresponds to your MySQL serve 的问题解决
今天做mybatis分页时遇到的问题,很无语,感觉sql语句写的没问题,但是一直提醒sql语法有问题,后来经过细心排查找到了问题所在。下面是一直报错的代码。 该错误一般出现在表名或字段名设计的过程中出现了mysql关键字导致的。我的是sql语句中最后面加了分号(疏忽大意了。。。)...原创 2018-09-13 16:27:44 · 11640 阅读 · 0 评论