◐ Shell
clean mode source ↗

GitHub - YaoLin1/codegen: 基于freemarker的代码生成工具

git clone git@github.com:YaoLin1/codegen.git
mvn clean package -DskipTests=true
修改配置文件 /codegen/src/main/resources/codegen.properties

内容

outputdir=./output/   #输出目录,必填

host=localhost        #mysqlhost,必填

database=o2o_deals    #数据库名,必填

user=o2o              #数据库账户名,必填

pass=123456           #密码,必填

packname=             #应用包名,可不填

tableNamePrefix=wd_   #表前缀,可不填

tablename=wd_region,wd_account,wd_activity,wd_coupon,wd_inside_message,wd_shop,wd_ticket #待生成表名列表,以逗号分割

author=JianLin.Zhu    #作者名,可不填