Files
cemis-code-generator/README.md
2024-01-05 10:34:25 +08:00

17 lines
887 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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/)进行配置与代码生成