File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# springboot-gencode
22
3+ ### 通知:仓库迁移说明
4+
5+ ** 为了给读者创造更好的阅读学习体验,本仓库内容已全部迁移至 [ 新仓库:风象南公开课] ( ]https://github.com/yuboon/OpenClass ) ,近期将关闭该仓库。**
6+
7+
8+
39### 内容概述
410
511以代码生成工具的核心功能为案例,从需求到最终实现,较为详细的描述了工作过程和一些工作方法包括一些设计程序的思想和理念。
Original file line number Diff line number Diff line change 1+ # 突破CRUD | 简单优雅的代码生成工具诞生记
2+
3+ ### 为什么造轮子
4+
5+ 别人会不等于你会
6+
7+ 真的能学到东西
8+
9+
10+
11+ # 你或许可以学到
12+
13+ 1、一个需求从产生、分析到解决的全过程思考
14+
15+ 2、简单的面向对象分析实践
16+
17+ 3、UML类图实践
18+
19+ 4、设计模式的实践应用
20+
21+ 5、最后收获一款还算不错的代码生成工具实现思路和源代码
22+
23+
24+
25+ ### 怎么造
26+
27+ 模仿
28+
29+ mybatis-generator
30+
31+ 从简单的开始
32+
33+
34+
35+ ### 实现思路
36+
37+ 基本设计原理图
38+
39+ 模板引擎
40+
41+ Thymeleaf
42+
43+ 先穷举,再画类图
44+
45+ 从使用者角度去推导
46+
47+
48+
49+ ### 设计
50+
51+ PowerDesign UML
52+
53+ 命令行交互的一个过程
54+
55+ GenCodeRunner -> Command -> GenCode -> MetaData -> CodeTemplate -> SpringTemplateEngine -> CodeOutput
56+
57+ MetaData : DbConnection、DbYamlProperties
58+
59+ 关联:ClassA 、 ClassB A -> B
60+
61+ 依赖:ClassA、ClassB A -> method -> B
62+
63+
64+
65+ 数据库类型 Varchar text datetime Java 类 String
66+
67+
68+
69+ ### 实现
70+
71+ 从基本结构开始,完成第一个版本
72+
73+ 逐步迭代
74+
75+ ###
76+
77+ ### 升华
78+
79+ 模板引擎替换 ?
80+
81+ 模板多版本支持 ?
82+
83+ Web化 ?
84+
85+ 多模块同时生成 ?
86+
87+ .....
88+
89+ .....
90+
91+
92+
93+
94+
You can’t perform that action at this time.
0 commit comments