Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenhao
hel-developer-guide
Commits
c50afff6
Commit
c50afff6
authored
Aug 02, 2017
by
高洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates 融租易开发手册.md
Auto commit by GitBook Editor
parent
1eae9ddf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
code-generator.md
后端开发/code-generator.md
+55
-0
融租易开发手册.md
融租易开发手册.md
+1
-0
No files found.
后端开发/code-generator.md
0 → 100644
View file @
c50afff6
# 代码生成器
# 简介:
本功能可根据数据表生成相关的dto,mapper impl,service,controller与html,包含相关的增删改查功能。
**网页入口**
:http:
\/\/
localhost:8080
\/
hap
\/
generator
\/
generator.html
## 使用说明:
**主页面:**
![](
/assets/gnerator1.png
)
**项目路径**
:指向本机hap。
**包父路径:**
指向hap的包路径。
**包路径:**
为所要生成的包名。
**选择表:**
选中所要维护的表。
**文件名:**
将自动根据表名生成对应名称(修改dto可选择是否根据dto修改其余文件,也可单独修改其余文件)( 文件创建之前会判断项目中是否有同名文件 ) 。
**是否创建:**
勾选创建文件。
**是否覆盖:**
勾选则可以覆盖同路径下同名文件。
**选择ftl模板:**
可根据选择的ftl模板生成对应的html页面。
## 生成示例:
**1:相关文件**
![](
/assets/generator2.png
)
2:相关的dto
![](
/assets/generator4.png
)
**3:相关controller**
(包含增删改查)
![](
/assets/generator5.png
)
**4:相关mapper**
(包含基础resultMap)
![](
/assets/generator6.png
)
**5:生成基础的增删改查功能的html页面**
![](
/assets/generator3.png
)
**6:service文件**
(mapper类似)
![](
/assets/gernerator7.png
)
融租易开发手册.md
View file @
c50afff6
...
...
@@ -22,6 +22,7 @@
*
[
3.2 审计
](
/后端开发/audit.md
)
*
[
3.3 锁机制
](
/后端开发/lock.md
)
*
[
3.4 日志管理
](
/后端开发/elk.md
)
*
[
3.5 代码生成器
](
/后端开发/code-generator.md
)
*
IV. 前端JavaScript开发
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment