MyBatis Generator自动生成MyBatis的映射代码
来源:互联网 发布:mac最新系统版本是多少 编辑:程序博客网 时间:2024/05/16 06:30
MyBatis Generator自动生成MyBatis的映射代码
MyBatis Generator大大简化了MyBatis的数据库的代码编写,有了一个配置文件,就可以直接根据表映射成实体类、Dao类和xml映射。
资源地址:
MyBatis项目地址:http://mybatis.github.io/
MyBatis中文使用文档:http://mybatis.github.io/mybatis-3/zh/index.html
MyBatis Generator使用文档:http://mybatis.github.io/generator/index.html
MyBatis Generator的Eclipse插件地址:http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/
1.在Eclipse中安装MyBatis Generator插件
Help->Install New Software输入插件地址:http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/,如下图所示,一路Next安装即可
2.创建MyBatis Generator配置文档
File->New->Other...
如图所示新建MyBatis Generator配置文档,按提示创建好即可
3.修改配置值
网址:http://mybatis.github.io/generator/configreference/xmlconfig.html有示例配置及详细的标签介绍,如图所示:
4.运行及结果展示
在该文件右键执行即可,如图所示:
- MyBatis Generator自动生成MyBatis的映射代码
- MyBatis Generator自动生成MyBatis的映射代码
- 一双跑鞋的mybatis(六)---使用generator自动生成mybatis映射代码
- Generator-Mybatis自动生成代码
- MyBatis Generator自动生成代码
- mybatis-generator自动生成代码
- mybatis自动生成代码generator
- MyBatis Generator 自动生成代码
- Mybatis-Generator自动生成代码
- MyBatis-generator 自动生成代码
- mybatis-generator自动生成代码
- mybatis-generator【mybatis代码自动生成】
- MBG(MyBatis Generator):MyBatis自动代码生成;
- mybatis mybatis-generator 代码自动生成工具
- 使用MyBatis-generator 自动生成MyBatis代码
- mybatis mybatis-generator 代码自动生成工具
- 利用Mybatis Generator自动生成Mybatis的相关代码
- 利用Mybatis Generator自动生成Mybatis的相关代码
- [Leetcode刷题总结系列][Dynamic programming][Divide-and-conquer]53.Maximum Subarray
- 使用MySQL正则表达式 __MySQL必知必会
- spi协议及工作原理分析
- 三个臭皮匠顶过诸葛亮的adaboost算法
- 取json中的键值(json中键值不固定的时候)
- MyBatis Generator自动生成MyBatis的映射代码
- mysql安装图解 mysql图文安装教程(详细说明)
- 锋利的jQuery ajax(一)
- HDU2098 分拆素数和
- PhotoUI框架的添加导致的iOS7及之前版本崩溃问题
- 诗和远方:云和恩墨大讲堂Oracle电子期刊第四期
- JavaEE开发中Hibernate使用小技巧总结(持续更新)
- 奋斗吧,程序员——第二十一章 但为君故,沉吟至今
- 老板,谈钱,不伤感情,你说对吗?