Code Monkey home page Code Monkey logo

diy-rapid-generator's Introduction

* 使用前需要配置:
    -------------------
    |generator.xml
    |    1) basepackage   -->    必须,所有生成java文件的基础包名。引用方式:${basepackage}
    |    2) namespace     -->    可选,若不填,就不要引用。引用方式:${namespace}
    |
    |    3) outRoot       -->    必须,输出目录,因为MacOS和WindowOS目录表示方式不同,自己多试试。
    |                            Mac OS : <entry key="outRoot">generator-class-output</entry>
    |                            结果:在项目根目录下生成generator-class-output文件夹,包含生成的文件
    |                            Window OS:原项目是<entry key="outRoot">.\generator-output</entry>。
    |                            结果:我没试过....
    |
    |    4) 数据库配置
    |        jdbc.username   ...
    |        jdbc.password   ...
    |        jdbc.url        ...
    |        jdbc.driver     ...

    -------------------
    |Main.main():
    |    根据你的调用方式,填入参数,选择调用的方法
    |
    |    1)g.generateByClass(Class<?> clazz,String templateDirByClass);
    |
    |    2)g.generateByTable(String tableName,String templateDirByTable);


* 其他资料:
    -------------------
    | 1)Freemarker操作字符串:http://www.blogjava.net/alinglau36/archive/2011/02/23/344970.html
    | 2)Freemarker详解:http://www.blogjava.net/176142998/archive/2010/07/03/325159.html

diy-rapid-generator's People

Contributors

535395302 avatar

Watchers

James Cloos avatar 彭泽洲 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.