当前位置:网站首页>Automatically generate code generator recommendation-code-gen
Automatically generate code generator recommendation-code-gen
2022-08-02 12:59:00 【Atty says】
I. Introduction
- Name: code-gen
- Type: Code Generation Tool
- Official website address: https://gitee.com/durcframework/code-gen?_from=gitee_search
- Brief description: A code generation tool that can customize templates to generate different codes, and supports MySQL, Oracle, SQL Server, and PostgreSQL.
Second, problems solved
Support multiple data sources, support custom templates, provide common entity classes, mybatis interfaces, and mybatis configuration file templates, which can quickly develop mybatis applications.
III. Instructions/practical use cases
Self-build
Need to install Maven3, Java8
Automatic build [recommended]:
Mac/Linux system can directly execute build.sh to build, the build result is in the dist/gen folder.Manual build:
Prerequisite: install nodejs, Java8, maven3cd front
Executenpm install --registry=https://registry.npm.taobao.org
Executenpm run build:prod
cd ..
Executemvn clean package
, agen-1.0.0-SNAPSHOT.jar
will be generated undergen/target
(xx represents this number)
Thegen-1.0.0-SNAPSHOT.jar
is placed underdist/gen
, make sure the jar and view are in the same directory
Executejava -jar gen-xx-SNAPSHOT.jar
Browser accesshttp://localhost:6969/
Build multiplatform
Install multiplatform buildx :docker buildx create --use --name m1_builder
View and start the builder instance:docker buildx inspect --bootstrap
Package and push multi-platform images at once
Package and push multi-platform images:docker buildx build -t tanghc2020/gen --platform=linux/amd64,linux/arm64/v8. --push
or package and save locally
package x64 platform image locally:docker buildx build -t tanghc2020/gen --platform=linux/amd64 -o type=docker
Package the arm64 platform image locally:docker buildx build -t tanghc2020/gen --platform=linux/arm64/v8 -o type=docker
Quick run:docker run -d -p 6969:6969 tanghc2020/gen
Four. Disadvantages and deficiencies
It needs local deployment, command start, not the form of the overall client, cannot be double-clicked to start, not very friendly
V. Summary
The overall structure is clear, the template can be customized, and multiple data sources can be customized. These two characteristics are very good
边栏推荐
猜你喜欢
JS中的闭包
SQL Server 2019 installation error 0 x80004005 service there is no timely response to the start or control request a detailed solution
FreeRTOS实验--删除任务
C语言结构体(入门)
Object.entries()
svg气球升起爆炸js特效
scrapy框架初识1
微信小程序getPhoneNumber接口code=40013
php - the first of three solid foundations
Software component analysis: 5 major capabilities to protect software supply chain security
随机推荐
PHP+MYSQL [Student Information Management System] (Minimalist Edition)
FreeRTOS--栈实验
分享一个Chrome控制台数据获取的例子
js秒表倒计时插件
RestTemplate 使用:设置请求头、请求体
zabbix自动化监控脚本
Openlayers Quick Start Tutorial
Import and export data of SQL Server database
RESTful style (detailed introduction + case implementation)
Article 48 - Analysis of timestamp2 parameters【2022-08-01】
php——三篇夯实根基第一篇
微信小程序getPhoneNumber接口code=40013
路由-嵌套路由
图神经网络(GNN)的简介「建议收藏」
30 lines of code to realize serverless real-time health code recognition -- operation manual
LeetCode_377_Combination Sum IV
Introduction to Scala Basic Syntax (3) Various Operators in Scala
数据湖(二):什么是Hudi
FreeRTOS experiment -- delete task
Introduction to Graph Neural Networks (GNN) "Recommended Collection"