Code Monkey home page Code Monkey logo

easy-generator's Introduction

一、请在src或src/main/resources目录下新建一个名为easy.properties的文件,
然后在properties中给出以下项的配置:
1.driverClassName----数据库驱动类名
2.url----------------数据库地址
3.username-----------数据库用户名
4.password-----------数据库密码

5.entityPackage------实体类包名

以下为可选字段
6.rowMapperPackage---基于Spring JdbcTemplate的rowMaper包名
7.table--------------需要生成实体类的表名,若为*、%、null或空,表示匹配所有表(默认匹配所有表)
					  若只需要生成某几个表,表名以英文逗号隔开,没有逗号,则认为是某一个表
8.ignoreComment------是否需要生成注释,可选值为true|false,默认为false,即生成的实体类中包含注释,
					  若不需要注释,需配置为true
					  
示例如下(可直接复制以下内容并修改):
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/db_blog
username=root
password=mysqladmin
entityPackage=com.hegongshan.easy.generator.bean
rowMapperPackage=com.hegongshan.easy.generator.rowmapper
table=t_admin
#table=*
#table=%
#table=null
#table=
ignoreComment=false

二、任意新建一个类,在主方法下调用如下方法:
com.hegongshan.easy.generator.Generator.generate();

easy-generator's People

Contributors

hegongshan 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.