Git Product home page Git Product logo

autocode's Introduction

AutoCode是一款简单的代码生成工具,可以快速生成前后台代码,欢迎大家提出宝贵意见!。
工具特点:

  • 结构简单,代码清晰。
  • 配置灵活,扩展方便。
  • 轻量便捷,模板配置。

项目结构

AutoCode
│ 
├─com.qdone.radmodel 
│  ├─ControllerBuilder 构建controller代码
│  ├─ServiceBuilder 构建service代码
│  ├─IBatisBuilder 构建mybatis代码
│  ├─EntityBuilder 构建数据库实体类
│  ├─SelectJspBuilder 构建列表页面代码
│  ├─UpdateJspBuilder 构建更新数据页面代码
│  └─InsertJspBuilder 构建添加数据页面代码
│ 
├─TestRadModel 项目启动类
│  
├──resources 
│  ├─config.properties 数据库配置
│  └─template 
│       ├─controllerTemplate.txt 构建controller模板
│       ├─serviceTemplate.txt 构建service模板
│       ├─serviceImplTemplate.txt 构建service模板
│       ├─selectHeader.txt 列表页头部模板
│       ├─selectFooter.txt 列表页底部模板
│       ├─insertHeader.txt 添加页面模板
│       └─updateHeader.txt 更新页面模板
│ 

本地部署

  • 通过git下载源码,编码UTF-8格式。
  • 创建本地数据库(mysql/oracle)。
  • 配置config.properties文件,指定生成表,数据库信息等。
  • Eclipse、IDEA运行TestRadModel.java,则可启动项目。
  • 代码生成完毕,项目路径会自动创建output文件夹,包含src和view分别对应后台代码和页面部分。
  • 拷贝src和view代码部分到开发框架即可。

**注意事项**
- 代码生成器,目前仅支持mysql和oracle,具体配置可以参考config.properties文件。
- 使用代码生成器之前,必须先创建表,并且指定主键,推荐填写表字段和表的备注(方便自动生成页面)。
- 源码中保留有其他模板扩展功能,如果需要请自行参考ControllerBuilder配置,开启自定义模板设置。

**用户反馈:**
- Git仓库:https://github.com/apple987/AutoCode
- 邮箱地址: [email protected]

autocode's People

Contributors

apple987 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.