主要参考官方文档:文档
1.新建模块
1.模块生成
在想要保存工程的目录执行:
mvn archetype:generate ^
-DgroupId=org.jeecg.modules.erp ^
-Dmodule=erp^
-Dmodule-up-first=Erp^
-DartifactId=jeecg-module-erp ^
-Dversion=3.4.2^
-DarchetypeGroupId=org.jeecgframework.archetype ^
-DarchetypeArtifactId=jeecg-cloud-gen ^
-DarchetypeVersion=3.4.0
2.模块内容
配置文件不用修改,默认采用nacos的配置文件
parent是jeecgboot 所以需要将jeecg-boot-parent install到本地仓库中。
然后在网关添加路由信息
然后就可以在网关api进行测试
2.代码生成
可以先建表再生成代码
也可以在平台界面创建表单然后同步到数据库,然后生成代码
官方文档:文档
复制对应代码即可