0 Star 0 Fork 16

zouxixi / webit-generator

forked from febit / webit-generator 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

Webit Generator -- 这是一个自动生成代码的工具

QQ群: 302505483

如果您在使用或者定制自己的模版的时候遇到问题欢迎加入到Webit Script的QQ群进行讨论。

编译方法

mvn install

使用方法:

  • 配置 generator.props 设置数据源,用户名,密码,输出文件夹,基本包名,版权信息等等,缺省是Mysql的驱动 其他数据库暂未测试

  • (可选)运行init-config.bat 这一步是采集数据表,生成列表,可以对每列进行特殊配置

  • 运行generator.bat 生成代码

  1. 生成的过程中会产生日志,查看日志文件即可了解生成情况
  1. 如果发现生成的内容不正常 可以在命令行中执行这两个批处理 查看请详细的错误日志

配置说明

  • 配置文件请参考 generator-core-xx.jar 中的 generator-default.props

开源协议

Webit Generator 依据 BSD许可证发布。详细请看 LICENSE 文件。

Bug report

github-issue

Copyright (c) 2013-2014, Webit Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the Webit team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

代码生成的工具,java实现,方便自定义模板,生成各种语言的代码,采用webit-script模板引擎 展开 收起
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jelly/webit-generator.git
git@gitee.com:jelly/webit-generator.git
jelly
webit-generator
webit-generator
master

搜索帮助