MyBatis
cdai
这个作者很懒,什么都没留下…
展开
-
HelloWorld之MyBatis
项目的目录结构:很简单。Account是要组装的Domain对象,AccountDAO是测试类,mapper/Account.xml保存了两条Account的查询语句,而mybatis.cfg.xml是数据库连接的配置。package com.cdai.orm.mybatis;public class Account { private long id;原创 2012-08-20 20:50:30 · 2048 阅读 · 0 评论 -
Mybatis代码自动生成插件使用
1.配置pom.xml添加mybatis-generator-maven-plugin到pom.xml。123456789101112131415161718192021222原创 2013-11-04 21:16:49 · 3653 阅读 · 0 评论