
Mybatis
程序员小召
公司职员,从事java软件开发5年,混在程序猿中一只小巨蟹≧(°°)≦
个人微信公众号:main方法
个人网站地址:http://javakfz.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
使用数据库关键字做字段引起的mybatis或tk.mybatis框架报错
报错信息:Exception Error:Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 ‘require ) VALUES( 1,‘xx’,‘dfs’,‘原创 2020-11-06 11:17:16 · 1138 阅读 · 0 评论 -
Mybatis批量插入表数据
表对应Java中实体类public class Person{ private String name; private Integer age; private String sex; //......此处省略get set方法}Java Dao层接口方法int batchInsert(List<Person> list);Mybatis批量新增xml映射文件写法<insert id="batchInsert" parameterType="java.util.原创 2020-07-07 13:44:03 · 632 阅读 · 0 评论 -
Mybatis一对一,一对多,多对一
java实体类对象public class Teacher { private Integer id; private String name; private List<Student> students; //......此处省略get,set方法}public class Student{ private Integer id; private String name; private Teacher teacher ; //......此处省略get,se原创 2020-07-07 10:52:17 · 423 阅读 · 0 评论