# huaqiang-tech
**Repository Path**: huaqiang-tech/huaqiang-tech
## Basic Information
- **Project Name**: huaqiang-tech
- **Description**: 华强科技公司仓库,用来构建底层产物并向华强科技maven私服推送
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-12-22
- **Last Updated**: 2025-05-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# huaqiang-tech
## 介绍
华强科技公司仓库,用来构建底层产物并向华强科技maven私服推送
## 模块依赖关系

## 模块介绍
### 1. baseline/base
基础模块,包含各模块基础的父类,通用的常量,枚举,注解
### 2. tools/code-generater
代码生成模块,自动生成controller,service,增删改查全量的代码,继承了lombok,但是没有集成swagger,生成完成后直接可以给前端使用
### 3. tools/common
通用工具类介绍
## 版本说明
### 1. baseline/base
**1.0.0-SNAPSHOT** :基础模块,包含各模块基础的父类,通用的常量,枚举,注解
### 2. tools/code-generater
**1.0.0-SNAPSHOT** : 自动生成controller,service,serviceImpl,mapper,mapperXml,entity,dto,vo,query。增删改查全量的代码,集成了lombok,但是没有集成swagger,生成完成后直接可以给前端使用
### 3. tools/common
**1.0.0-SNAPSHOT**
## 使用说明
### 1. baseline/base
引入依赖:
```
com.huaqiang.baseline
base
1.0.0-SNAPSHOT
```
### 2. tools/code-generater
引入依赖:
```
com.huaqiang.tools
code-generation
1.0.0-SNAPSHOT
```
添加代码:
```
public static void main(String[] args) throws Exception {
SpringApplication.run(UReport2Application.class, args);
//添加以下代码
CodeGeneration codeGeneration = new CodeGeneration();
codeGeneration.setDbIp("localhost");
codeGeneration.setDbPort("3306");
codeGeneration.setDbName("test");
codeGeneration.setUsername("root");
codeGeneration.setPassword("123456");
codeGeneration.setJdbcType("mysql");
codeGeneration.setParentPackageName("包名");
codeGeneration.setModuleName("模块名");
codeGeneration.setTablePrefix("表前缀");
codeGeneration.setTableNames(Arrays.asList("t_表a","t_表b","t_表c"));
codeGeneration.run();
}
```
生成的目录结构:

### 3. tools/common
引入依赖:
```
com.huaqiang.tools
common
1.0.0-SNAPSHOT
```