refactor(workflow): 工作流模块改由 ConditionalOnWorkflowEnabled 条件装配
- 移除启动类手工 ComponentScan 排除与 WorkflowModuleConfig、 WorkflowEnvironmentPostProcessor、spring.factories 自动装配配置 - 新增 @ConditionalOnWorkflowEnabled 注解,按 flowable.enabled 决定工作流模块是否生效 - 启动类回归 @SpringBootApplication,各配置属性类改用 @Component 显式注册
This commit is contained in:
30
README.md
30
README.md
@@ -149,9 +149,8 @@ youlai-boot/
|
||||
│ │ │ └── util/ # 安全工具类
|
||||
│ │ └── web/ # Web 层(全局异常/跨域/限流)
|
||||
│ ├── module/ # 业务扩展模块
|
||||
│ │ ├── config/ # 模块装配(工作流按 flowable.enabled 开关)
|
||||
│ │ ├── form/ # 动态表单
|
||||
│ │ └── workflow/ # 工作流(Flowable 审批流)
|
||||
│ │ └── workflow/ # 工作流
|
||||
│ ├── support/ # 能力服务
|
||||
│ │ ├── file/ # 文件存储(RustFS/阿里云OSS/本地)
|
||||
│ │ ├── mail/ # 邮件服务
|
||||
@@ -215,10 +214,14 @@ youlai-boot/
|
||||
2. 在 `application-{profile}.yml` 中开启:
|
||||
|
||||
```yaml
|
||||
flowable:
|
||||
workflow:
|
||||
enabled: true
|
||||
```
|
||||
|
||||
Flowable 引擎开关(process / idm / eventregistry)在同一 `application-{profile}.yml` 中以占位符跟随 `workflow.enabled`,无需单独维护。
|
||||
|
||||
演示流程的启动自动部署由同文件 `workflow.demo.enabled` 控制(dev/youlai 默认 `true`、prod 默认 `false`,仅在模块开启后生效)。
|
||||
|
||||
**多租户**
|
||||
|
||||
需要租户隔离与租户配置,使用独立仓库 [youlai-boot-tenant](https://gitee.com/youlaiorg/youlai-boot-tenant)。
|
||||
@@ -229,8 +232,23 @@ youlai-boot/
|
||||
|
||||
如需技术支持、商务合作、二次开发、项目定制或私有化部署,可联系作者微信(见下方二维码)。
|
||||
|
||||
| 公众号「有来技术」 | <br /> | 小程序「有来技术」 | <br /> | 添加作者微信 |
|
||||
| --------- | ------ | --------- | ------ | ------ |
|
||||
| <br /> | <br /> | <br /> | <br /> | <br /> |
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img src="./docs/images/qrcode/wechat-official.jpg" height="180" alt="公众号「有来技术」"><br>
|
||||
<sub>公众号「有来技术」</sub>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align="center">
|
||||
<img src="./docs/images/qrcode/wechat-mp.jpg" height="180" alt="小程序「有来技术」"><br>
|
||||
<sub>小程序「有来技术」</sub>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td align="center">
|
||||
<img src="./docs/images/qrcode/wechat-personal.png" height="180" alt="添加作者微信"><br>
|
||||
<sub>添加作者微信</sub>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p align="center"><em>技术交流 · 问题反馈 · 商务合作</em></p>
|
||||
|
||||
Reference in New Issue
Block a user