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## 服务创建示例
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
2531api 模块基本依赖:
32+
2633``` xml
2734
2835<dependencies >
@@ -44,6 +51,7 @@ api 模块基本依赖:
4451```
4552
4653svc 模块基本依赖:
54+
4755``` xml
4856
4957<project >
@@ -144,6 +152,7 @@ public class UniXxxApplication extends SpringBootServletInitializer {
144152## 配置文件
145153
146154bootstrap.yml
155+
147156``` yaml
148157logging :
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 略
You can’t perform that action at this time.
0 commit comments