2
0
Files
be.wfc/README.md
2024-11-14 10:39:59 +08:00

74 lines
3.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WfcCloud-Vue-AntD
## 项目介绍
WfcCloud-Vue-AntD是一个基于Spring Cloud、OAuth2.0、Ant Design Vue的前后端分离的开发平台提供了一整套微服务解决方案包括核心模块如组织机构、角色用户、菜单权限、网关路由、数据权限等常用中间件如日志脱敏、任务调度、短信邮箱、接口文档、代码生成等高效稳定极大的缩短研发周期帮助企业快速构建业务系统。
## 系统模块
~~~
org.wfc
├── wfc-gateway // 网关模块 [8080]
├── wfc-auth // 认证中心 [9200]
├── wfc-api // 接口模块
│ └── wfc-api-system // 系统接口
├── wfc-common // 通用模块
│ └── wfc-common-core // 核心模块
│ └── wfc-common-datascope // 权限范围
│ └── wfc-common-datasource // 多数据源
│ └── wfc-common-log // 日志记录
│ └── wfc-common-redis // 缓存服务
│ └── wfc-common-seata // 分布式事务
│ └── wfc-common-security // 安全模块
│ └── wfc-common-sensitive // 数据脱敏
│ └── wfc-common-swagger // 系统接口
├── wfc-modules // 业务模块
│ └── wfc-system // 系统模块 [9201]
│ └── wfc-gen // 代码生成 [9202]
│ └── wfc-job // 定时任务 [9203]
│ └── wfc-file // 文件服务 [9300]
├── wfc-visual // 图形化管理模块
│ └── wfc-visual-monitor // 监控中心 [9100]
├──pom.xml // 公共依赖
~~~
## 环境部署
### 准备工作
```
JDK >= 1.8 (推荐1.8版本)
Mysql >= 5.7.0 (推荐5.7版本)
Redis >= 3.0
Maven >= 3.0
nacos >= 2.0.4
sentinel >= 1.6.0
```
### 运行系统
1、 创建数据库wfc-cloud并导入数据脚本.sql必须quartz.sql可选
2、 创建数据库wfc-config并导入数据脚本wfc-config.sql必须
3、 配置nacos持久化修改conf/application.properties文件增加支持mysql数据源配置
```
# db mysql
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/wfc-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=root
db.password=password
```
4、 打开运行基础模块(启动没有先后顺序)
* WfcGatewayApplication (网关模块 必须)
* WfcAuthApplication (认证模块 必须)
* WfcSystemApplication (系统模块 必须)
* WfcMonitorApplication (监控中心 可选)
* WfcGenApplication (代码生成 可选)
* WfcJobApplication (定时任务 可选)
* WfcFileApplication (文件服务 可选)
5、集成seata分布式事务可选配置默认不启用
创建数据库wfc-seata并导入数据脚本wfc_seata.sql