✨ [2025-06-26] 重新同步文档,修复 docker 问题,使用 host 方式
All checks were successful
Publish to Confluence / confluence (push) Successful in 15s
All checks were successful
Publish to Confluence / confluence (push) Successful in 15s
This commit is contained in:
parent
34daebe3e9
commit
c87fa19a23
@ -23,10 +23,10 @@
|
|||||||
<!-- :toc: -->
|
<!-- :toc: -->
|
||||||
|
|
||||||
# engine-starter-feign 使用教程(Deprecated)
|
# engine-starter-feign 使用教程(Deprecated)
|
||||||
|
|
||||||
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
||||||
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
|
|
||||||
> 基于 Feign 的通用封装
|
> 基于 Feign 的通用封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
<!-- :toc: -->
|
<!-- :toc: -->
|
||||||
|
|
||||||
# engine-starter-feign 使用教程(Deprecated)
|
# engine-starter-feign 使用教程(Deprecated)
|
||||||
|
|
||||||
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
||||||
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
|
|
||||||
> 基于 Feign 的通用封装
|
> 基于 Feign 的通用封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
# engine-starter-feign 使用教程
|
# engine-starter-feign 使用教程
|
||||||
|
|
||||||
|
|
||||||
> 基于 Feign 的通用封装
|
> 基于 Feign 的通用封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
## 变更记录
|
## 变更记录
|
||||||
|
|
||||||
- 修复存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 修复存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<!-- :toc: -->
|
<!-- :toc: -->
|
||||||
|
|
||||||
# 旧项目引入新包教程(Deprecated)
|
# 旧项目引入新包教程(Deprecated)
|
||||||
|
|
||||||
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
||||||
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
@ -51,11 +52,12 @@
|
|||||||
| oauth2-core | engine-starter-web | engine-starter-compatible-web | |
|
| oauth2-core | engine-starter-web | engine-starter-compatible-web | |
|
||||||
| data-mybatis-plus、data-core | engine-starter-mybatis-plus | engine-starter-compatible-mybatis-plus | |
|
| data-mybatis-plus、data-core | engine-starter-mybatis-plus | engine-starter-compatible-mybatis-plus | |
|
||||||
|
|
||||||
|
|
||||||
### 重复功能禁用
|
### 重复功能禁用
|
||||||
|
|
||||||
- 核心包默认集成并开启了一些通用功能
|
- 核心包默认集成并开启了一些通用功能
|
||||||
- 可以通过对应的配置文件关闭核心包中的功能
|
- 可以通过对应的配置文件关闭核心包中的功能
|
||||||
- 也可以移除项目中的重复配置代码
|
- 也可以移除项目中的重复配置代码
|
||||||
|
|
||||||
#### 各个模块的功能特性列表
|
#### 各个模块的功能特性列表
|
||||||
|
|
||||||
[功能特新列表(00-EngineStarter开头)](http://confluence.qifu.com/pages/viewpage.action?pageId=38508258)
|
[功能特新列表(00-EngineStarter开头)](http://confluence.qifu.com/pages/viewpage.action?pageId=38508258)
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
# 旧项目引入新包教程
|
# 旧项目引入新包教程
|
||||||
|
|
||||||
|
|
||||||
- **注意:** `qifu-saas-parent >= 2.0.2-SNAPSHOT`
|
- **注意:** `qifu-saas-parent >= 2.0.2-SNAPSHOT`
|
||||||
|
|
||||||
## 快速使用
|
## 快速使用
|
||||||
@ -49,11 +48,12 @@
|
|||||||
| oauth2-core | engine-starter-web | engine-starter-compatible-web | |
|
| oauth2-core | engine-starter-web | engine-starter-compatible-web | |
|
||||||
| data-mybatis-plus、data-core | engine-starter-mybatis-plus | engine-starter-compatible-mybatis-plus | |
|
| data-mybatis-plus、data-core | engine-starter-mybatis-plus | engine-starter-compatible-mybatis-plus | |
|
||||||
|
|
||||||
|
|
||||||
### 重复功能禁用
|
### 重复功能禁用
|
||||||
|
|
||||||
- 核心包默认集成并开启了一些通用功能
|
- 核心包默认集成并开启了一些通用功能
|
||||||
- 可以通过对应的配置文件关闭核心包中的功能
|
- 可以通过对应的配置文件关闭核心包中的功能
|
||||||
- 也可以移除项目中的重复配置代码
|
- 也可以移除项目中的重复配置代码
|
||||||
|
|
||||||
#### 各个模块的功能特性列表
|
#### 各个模块的功能特性列表
|
||||||
|
|
||||||
[功能特新列表(00-EngineStarter开头)](http://confluence.qifu.com/pages/viewpage.action?pageId=38508258)
|
[功能特新列表(00-EngineStarter开头)](http://confluence.qifu.com/pages/viewpage.action?pageId=38508258)
|
||||||
|
@ -23,12 +23,12 @@
|
|||||||
<!-- :toc: -->
|
<!-- :toc: -->
|
||||||
|
|
||||||
# engine-starter-web 使用教程(Deprecated)
|
# engine-starter-web 使用教程(Deprecated)
|
||||||
|
|
||||||
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
||||||
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
|
|
||||||
> 基于 web 的各种工具封装
|
> 基于 web 的各种工具封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -23,11 +23,16 @@
|
|||||||
<!-- :toc: -->
|
<!-- :toc: -->
|
||||||
|
|
||||||
# engine-starter-web 使用教程(Deprecated)
|
# engine-starter-web 使用教程(Deprecated)
|
||||||
|
|
||||||
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
- <font color="red">该版本存在BUG,请使用 2.0.2 版本</font>
|
||||||
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
- 在存在 RequestInterceptor 的情况下,token 无法向下游透传的BUG
|
||||||
|
|
||||||
> 基于 web 的各种工具封装
|
> 基于 web 的各种工具封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
|
## 变更记录
|
||||||
|
|
||||||
|
- 兼容 1.1.3 版本(已废弃,未发布)
|
||||||
|
|
||||||
## 功能特性
|
## 功能特性
|
||||||
|
|
||||||
|
@ -25,9 +25,10 @@
|
|||||||
# engine-starter-web 使用教程
|
# engine-starter-web 使用教程
|
||||||
|
|
||||||
> 基于 web 的各种工具封装
|
> 基于 web 的各种工具封装
|
||||||
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
> 具体使用可参考 [engine-sample > engine-sample-starter-web](../engine-sample/engine-sample-starter-web)
|
||||||
|
|
||||||
## 变更记录
|
## 变更记录
|
||||||
|
|
||||||
- 添加无限层级填充
|
- 添加无限层级填充
|
||||||
- 修复脚手架扫描包问题
|
- 修复脚手架扫描包问题
|
||||||
- 修复Nacos配置无法自动刷新问题
|
- 修复Nacos配置无法自动刷新问题
|
||||||
@ -36,8 +37,8 @@
|
|||||||
|
|
||||||
- [X] `YmAutofillResponseAdvice`: 全局返回结果填充处理
|
- [X] `YmAutofillResponseAdvice`: 全局返回结果填充处理
|
||||||
- [X] `@YmAutoFill` 和 `@YmAutoFillResp`: 结果自动填充
|
- [X] `@YmAutoFill` 和 `@YmAutoFillResp`: 结果自动填充
|
||||||
- 多层级填充实现,[使用样例](#结果自动填充)
|
- 多层级填充实现,[使用样例](#结果自动填充)
|
||||||
- 多层级字段需要使用 `@YmAutofillResp` 标识
|
- 多层级字段需要使用 `@YmAutofillResp` 标识
|
||||||
- [X] `@YmIgnoreResultWrapper`: 忽略 `Result` 结果包装
|
- [X] `@YmIgnoreResultWrapper`: 忽略 `Result` 结果包装
|
||||||
- [X] `YmResponseAdvice`: 全局结果封装
|
- [X] `YmResponseAdvice`: 全局结果封装
|
||||||
- [X] `YmGlobalExceptionHandlerAdvice`: 全局异常拦截处理
|
- [X] `YmGlobalExceptionHandlerAdvice`: 全局异常拦截处理
|
||||||
@ -260,25 +261,25 @@ import java.util.List;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum TestStatusEnum implements YmBaseEnum<String> {
|
public enum TestStatusEnum implements YmBaseEnum<String> {
|
||||||
|
|
||||||
SUCCESS("SUCCESS", "成功"),
|
SUCCESS("SUCCESS", "成功"),
|
||||||
FAIL("FAIL", "失败"),
|
FAIL("FAIL", "失败"),
|
||||||
;
|
;
|
||||||
|
|
||||||
private final String code;
|
private final String code;
|
||||||
private final String desc;
|
private final String desc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class TestAutoFillHandler implements YmAutofillHandler {
|
public class TestAutoFillHandler implements YmAutofillHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<?, ?> handle(Collection<?> ids, YmAutofillInfo autofill) {
|
public Map<?, ?> handle(Collection<?> ids, YmAutofillInfo autofill) {
|
||||||
Collection<String> string = (Collection<String>) ids;
|
Collection<String> string = (Collection<String>) ids;
|
||||||
Map<String, String> result = new HashMap<>();
|
Map<String, String> result = new HashMap<>();
|
||||||
string.forEach(k -> result.put(k, k + "value"));
|
string.forEach(k -> result.put(k, k + "value"));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -286,23 +287,23 @@ public class TestAutoFillHandler implements YmAutofillHandler {
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class TestData {
|
public class TestData {
|
||||||
|
|
||||||
@YmAutofill(enumCls = TestStatusEnum.class)
|
@YmAutofill(enumCls = TestStatusEnum.class)
|
||||||
private String statusName;
|
private String statusName;
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private String code;
|
private String code;
|
||||||
@YmAutofill(from = "code", type = YmAutofillType.BEAN, handler = TestAutoFillHandler.class)
|
@YmAutofill(from = "code", type = YmAutofillType.BEAN, handler = TestAutoFillHandler.class)
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
@YmAutofillResp
|
@YmAutofillResp
|
||||||
private List<TestDataSecond> secondList;
|
private List<TestDataSecond> secondList;
|
||||||
@YmAutofillResp
|
@YmAutofillResp
|
||||||
private List<TestData> childList;
|
private List<TestData> childList;
|
||||||
|
|
||||||
public TestData(String status, String code) {
|
public TestData(String status, String code) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,45 +311,45 @@ public class TestData {
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class TestDataSecond {
|
public class TestDataSecond {
|
||||||
|
|
||||||
private String statusName;
|
private String statusName;
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private String code;
|
private String code;
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
@YmAutofillResp
|
|
||||||
private TestData testData;
|
|
||||||
|
|
||||||
public TestDataSecond(String status, String code) {
|
@YmAutofillResp
|
||||||
this.status = status;
|
private TestData testData;
|
||||||
this.code = code;
|
|
||||||
}
|
public TestDataSecond(String status, String code) {
|
||||||
|
this.status = status;
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public class Usage {
|
public class Usage {
|
||||||
|
|
||||||
@YmAutofillResp
|
@YmAutofillResp
|
||||||
@GetMapping("/autofill")
|
@GetMapping("/autofill")
|
||||||
public List<TestData> autofill() {
|
public List<TestData> autofill() {
|
||||||
List<TestData> list = new ArrayList<>();
|
List<TestData> list = new ArrayList<>();
|
||||||
list.add(new TestData(TestStatusEnum.SUCCESS.getCode(), "1"));
|
list.add(new TestData(TestStatusEnum.SUCCESS.getCode(), "1"));
|
||||||
list.add(new TestData(TestStatusEnum.FAIL.getCode(), "2"));
|
list.add(new TestData(TestStatusEnum.FAIL.getCode(), "2"));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@YmAutofillResp({
|
@YmAutofillResp({
|
||||||
@YmAutofill(from = "status", target = "statusName", enumCls = TestStatusEnum.class),
|
@YmAutofill(from = "status", target = "statusName", enumCls = TestStatusEnum.class),
|
||||||
@YmAutofill(from = "code", target = "msg", type = YmAutofillType.BEAN, handler = TestAutoFillHandler.class)
|
@YmAutofill(from = "code", target = "msg", type = YmAutofillType.BEAN, handler = TestAutoFillHandler.class)
|
||||||
})
|
})
|
||||||
@GetMapping("/autofill-second")
|
@GetMapping("/autofill-second")
|
||||||
public List<TestDataSecond> autofillSecond() {
|
public List<TestDataSecond> autofillSecond() {
|
||||||
List<TestDataSecond> list = new ArrayList<>();
|
List<TestDataSecond> list = new ArrayList<>();
|
||||||
list.add(new TestDataSecond(TestStatusEnum.SUCCESS.getCode(), "1"));
|
list.add(new TestDataSecond(TestStatusEnum.SUCCESS.getCode(), "1"));
|
||||||
list.add(new TestDataSecond(TestStatusEnum.FAIL.getCode(), "2"));
|
list.add(new TestDataSecond(TestStatusEnum.FAIL.getCode(), "2"));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user