当前位置:网站首页>自动生成代码器推荐-code-gen
自动生成代码器推荐-code-gen
2022-08-02 12:49:00 【阿提说说】
一、简介
- 名称:code-gen
- 类型:代码生成工具
- 官网地址:https://gitee.com/durcframework/code-gen?_from=gitee_search
- 简要说明:一款代码生成工具,可自定义模板生成不同的代码,支持MySQL、Oracle、SQL Server、PostgreSQL。
二、解决的问题
支持多数据源,支持自定义模板,提供了通用的实体类、mybatis接口、mybatis配置文件模板,可以快速开发mybatis应用。
三、使用说明/实操使用案例
自主构建
需要安装Maven3,Java8
自动构建[推荐]:
Mac/Linux系统可直接执行build.sh进行构建,构建结果在dist/gen文件夹下。手动构建:
前提:安装nodejs,Java8,maven3cd front
执行npm install --registry=https://registry.npm.taobao.org
执行npm run build:prodcd ..
执行mvn clean package,在gen/target下会生成一个gen-1.0.0-SNAPSHOT.jar(xx表示本号)
将gen-1.0.0-SNAPSHOT.jar放在dist/gen下,确保jar和view在同一目录
执行java -jar gen-xx-SNAPSHOT.jar
浏览器访问http://localhost:6969/构建多平台
安装多平台buildx :docker buildx create --use --name m1_builder
查看并启动 builder 实例:docker buildx inspect --bootstrap
一次打包多平台镜像并推送
打包多平台镜像并推送:docker buildx build -t tanghc2020/gen --platform=linux/amd64,linux/arm64/v8 . --push
或打包保存在本地
打包x64平台镜像在本地:docker buildx build -t tanghc2020/gen --platform=linux/amd64 -o type=docker
打包arm64平台镜像在本地:docker buildx build -t tanghc2020/gen --platform=linux/arm64/v8 -o type=docker
快速运行:docker run -d -p 6969:6969 tanghc2020/gen

四、缺点和不足
需要本地部署,命令启动,而不是整体客户端的形式,不能双击启动,不太友好
五、总结
整体结构清晰,能自定义模板,自定义多数据源,这两个特点非常好
边栏推荐
- WPF——自定义日历
- Js scratchable latex style draw plug-in
- ssm access database data error
- Seneor曝光基础知识
- zabbix自动化监控脚本
- Detailed explanation of network flow (what information can the flow network diagram generally reflect)
- js源码跳转的几种方式,在当前页面跳转,在空白页跳转
- How to turn off hardware acceleration [easy to understand]
- Openlayers 快速上手教程
- FreeRTOS experiment -- delete task
猜你喜欢
随机推荐
FreeRTOS experiment--one function creates multiple tasks
PGSQL database to realize the import and export
如何关闭开启硬件加速[通俗易懂]
qt 编译报错 No rule to make target
第48篇-timestamp2参数分析【2022-08-01】
第十四章 手动创建 REST 服务(二)
Data Lake (3): Hudi Concept Terminology
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
Good shooting js game source code
photo-sphere-viewer中文文档
Manual architecture, Mysql interview 126 questions
sql concat() function
np.nan, np.isnan, None, pd.isnull, pd.isna finishing and summary
Intelligent Image Analysis-Intelligent Home Appliance Image Target Detection Statistical Counting Detection and Recognition-iCREDIT
动态组件-component
Interpretation of new features | MySQL 8.0 GIPK invisible primary key
SQL Server如何建表
FreeRTOS实验--删除任务
SQL中字符串拼接
Technology sharing | Description of the electronic fence function in the integrated dispatching system








