Skip to content

Commit cf64b67

Browse files
committed
docs: 修改创建服务说明文档
1 parent 529fdc3 commit cf64b67

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.docs/intro/create-service-example.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## 服务创建示例
22

3+
### 创建数据库
4+
5+
sql/framework 目录下的 sql 是 framework 服务所需的
6+
7+
若新建服务依赖了 uni-boot-framework-base,且使用了其他数据库,则需要执行 all_svc.sql
8+
39
### 创建模块
410

511
创建一个模块 uni-boot-xxx,继承自 uni-boot-dependencies
@@ -23,6 +29,7 @@ api 模块供外部调用、DTO 共享,svc 模块提供基础服务
2329
本项目子模块版本维护在根 pom,第三方模块版本维护在 uni-boot-dependencies
2430

2531
api 模块基本依赖:
32+
2633
```xml
2734

2835
<dependencies>
@@ -44,6 +51,7 @@ api 模块基本依赖:
4451
```
4552

4653
svc 模块基本依赖:
54+
4755
```xml
4856

4957
<project>
@@ -144,6 +152,7 @@ public class UniXxxApplication extends SpringBootServletInitializer {
144152
## 配置文件
145153

146154
bootstrap.yml
155+
147156
```yaml
148157
logging:
149158
file:
@@ -171,7 +180,6 @@ spring:
171180
- shared-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
172181
```
173182
174-
logback-spring.xml
175-
```xml
176-
<!--略-->
177-
```
183+
uni-boot-xxx-dev.yml dev 环境配置,推荐托管到 nacos 配置中心,参考 application-config-example.md
184+
185+
logback-spring.xml 略

0 commit comments

Comments
 (0)