zhangjf a17307a96e feat: 完成资金服务平台六步实施 - 数据库初始化+服务启动+网关配置
本次提交包含:
1. 11个Maven模块全部创建并编译通过
2. 4个数据库初始化脚本(14张表)
3. fund-sys服务启动验证
4. Gateway路由配置完成
5. API端到端测试通过

核心能力:
- 多租户数据隔离(MyBatis-Plus)
- JWT认证+BCrypt密码
- 统一返回结构
- 参数校验
- OpenFeign示例
- API网关统一入口

修复:
- MyBatis-Plus与Spring Boot 3兼容性问题
- BaseEntity字段类型统一(Long)
- Gateway版本兼容性
2026-02-17 12:53:55 +08:00

79 lines
1.7 KiB
YAML

server:
port: 8080
spring:
application:
name: fund-gateway
cloud:
compatibility-verifier:
enabled: false
gateway:
routes:
# 系统管理服务
- id: fund-sys
uri: http://localhost:8100
predicates:
- Path=/sys/**
filters:
- StripPrefix=1
# 客户管理服务
- id: fund-cust
uri: http://localhost:8110
predicates:
- Path=/cust/**
filters:
- StripPrefix=1
# 项目管理服务
- id: fund-proj
uri: http://localhost:8120
predicates:
- Path=/proj/**
filters:
- StripPrefix=1
# 用款申请服务
- id: fund-req
uri: http://localhost:8130
predicates:
- Path=/req/**
filters:
- StripPrefix=1
# 支出管理服务
- id: fund-exp
uri: http://localhost:8140
predicates:
- Path=/exp/**
filters:
- StripPrefix=1
# 收款管理服务
- id: fund-receipt
uri: http://localhost:8150
predicates:
- Path=/receipt/**
filters:
- StripPrefix=1
# 报表服务
- id: fund-report
uri: http://localhost:8160
predicates:
- Path=/report/**
filters:
- StripPrefix=1
# 文件服务
- id: fund-file
uri: http://localhost:8170
predicates:
- Path=/file/**
filters:
- StripPrefix=1
logging:
level:
org.springframework.cloud.gateway: DEBUG