17 lines
887 B
Markdown
17 lines
887 B
Markdown
# code-generator
|
||
|
||
基于mybatis-plus-generator-ui,用于生成项目的java基础代码,包括Service、Entity、Mapper、Controller等
|
||
|
||
# 用法
|
||
|
||
1、在`main/java`下将entity基类所在包建好,将基类拷贝进去
|
||
|
||
2、将`test/java/GeberatorUIServer.java`中数据库相关变量(`dbName`、`url`、`username`、`password`)改为实际数据库的配置
|
||
|
||
3、将`test/java/GeberatorUIServer.java`中生成类所在包的变量`parent`改为实际的包名,生成的java类都在这个包下
|
||
|
||
4、将`test/java/GeberatorUIServer.java`中表名前缀`tablePrefix`改为实际表前缀,生成器如果配置了去除前缀,则表中以这个前缀开头的表建立java实体类时,类名不会包含此前缀
|
||
|
||
5、执行`test/java/GeberatorUIServer.java`的main方法
|
||
|
||
6、浏览器访问[http://localhost:8068/](http://localhost:8068/)进行配置与代码生成 |