hegongshan / easy-generator Goto Github PK
View Code? Open in Web Editor NEWA code generator for java/一个java代码生成器
A code generator for java/一个java代码生成器
一、请在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();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.