1. 下载优化版的ibator,去掉了很多不必要的内容,面对讨厌的注释还是有一些没有用的ibatorgenerator等,做了优化。
2. 编写ibatorConfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Apache iBATIS Ibator Configuration 1.0//EN" "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
<ibatorConfiguration >
<classPathEntry location="D:\springworkspace\spider\spider\spider-web\target\spider-web\WEB-INF\lib\mysql-connector-java-5.1.9.jar" />
<ibatorContext id="context1" >
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/gigi" userId="root" password="123456" />
<javaModelGenerator targetPackage="com.isbn.bean" targetProject="kk" />
<sqlMapGenerator targetPackage="com.isbn.app.map" targetProject="kk" />
<daoGenerator targetPackage="com.test.dao" targetProject="kk" type="GENERIC-CI" />
<table schema="gigi" tableName="p_ticker" domainObjectName="Ticker" >
</table>
</ibatorContext>
</ibatorConfiguration>
3. 新建目录kk
4. 运行命令:java -jar ibator.jar -configfile ibatorConfig.xml -overwrite >>log.log
输出到日志中。
分享到:
相关推荐
使用数据库的注释,不用自带的注释 http://blog.csdn.net/tiantangpw/article/details/43489817 运行命令 java -jar ibator.jar -configfile ibatorConfig.xml -overwrite >>ibator.log
ibator插件优化的jar包,安装完ibator后,将eclipse\plugins\org.apache.ibatis.ibator.core_1.2.1下的jar包替换即可。
此项目通过对ibator的改造,通过执行cmd命令自动生成sql与Dao,大大提高开发效率
NULL 博文链接:https://xiao9.iteye.com/blog/954159
eclipse的ibatis代码生成器,最新版ibator 1.2.1
IBATIS3代码生成器 ibatis,Ibator,Abator
Ibator is a code generator for iBATIS. Ibator will introspect a database table (or many tables) and will generate iBATIS artifacts that can be used to access the table(s). This abates some of the ...
开源ibator什么xml和pojo的时候,经常会带一些讨厌的注释还有一些没用的ibatorgenerator等的,我改了它的源代码,弄了个干净的ibator
ibatis ibator eclipes插件 代码生成器 代码自动生成工具 下载后将features和plugins两个文件夹下的文件拷贝到eclipes安装路径下对应的features和plugins两个文件夹下即可
ibatis代码自动生成工具Eclipse插件,已进行优化处理,不生成注释和精简dao方法,亲测可用
iBATOR is a code generator for iBATIS.
ibator1.2.2多了点功能,具体可以百度,重新编译了下,生成注释去掉了
下载完之后会得到一个jar文件,然后将这个文件拷贝到eclipse安装目录的dropins文件夹下,重启eclipse(如果没有 打开直接打开即可)
自动生成dto\dao\xml 自带批处理自动生成程序
Ibatis 生成器 Ibator 的 API 文档
ibator相对于hibernate框架能完全自主编写sql代码,同时又有hibernate便于管理的优点,是非常理想的持久层技术
NULL 博文链接:https://dr-yanglong.iteye.com/blog/1936559
eclipse的集成插件,ibator.jar,可以直接mybatis导表,图形化展示,简单易用,直接放到eclipse的plugin文件夹下即可
ibator教学视频,手把手教你使用ibator
在myelipse7.5中安装ibator插件的方法与安装一般插件的方法是一致的,有以下2种方式(个人推荐使用手动安装方式,避免网络等原因造成安装不成功): 1. 手动安装方式 将邮件中附件的Ibator插件压缩文件IbatorForEclipse...