3 Star 1 Fork 1

逸风如梦 / Rapid-Code-Generate-Plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
基于Rapid-genereate代码生成框架开发的一个自动代码生成器插件
用法:
将src中的文件夹AutoGenerateCode拷贝到C盘根目录或linux下根目录,如果想拷贝到其他的目录在插件运行时指定位置即可:
-DconfigLocation=文件夹位置

关于配置文件中需要进行配置的内容:
outRoot:代码生成的文件夹位置
templateDirs:代码模版,可以多个,多个逗号隔开
tableNames:需要生成代码的表名称可以有多个逗号隔开
tableRemovePrefixes:需要忽略的表前缀,多个逗号隔开
其他的看配置文件说明

pom配置:
       <plugin>
            <groupId>com.dd.plugin</groupId>
            <artifactId>plugin-code-auto-generate</artifactId>
            <version>1.0</version>
            <configuration>
                <configLocation>C:/AutoGenerateCode</configLocation>
            </configuration>
        </plugin>
IDE运行命令:
1、code-auto-generate:codeAutoGene
2、com.dd.plugin:plugin-code-auto-generate:1.0:codeAutoGene

注意:需要主要配置的就是代码模版,熟悉freemarker之后在修改模版
代码生成器框架参考:
http://code.google.com/p/rapid-framework

空文件

简介

基于Rapid-Generate代码生成框架的Maven插件 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/dongrui/Rapid-Code-Generate-Plugin.git
git@gitee.com:dongrui/Rapid-Code-Generate-Plugin.git
dongrui
Rapid-Code-Generate-Plugin
Rapid-Code-Generate-Plugin
master

搜索帮助