## D.3 Nacos统一配置中心 - 添加spring-cloud-starter-alibaba-nacos-config依赖 - 创建bootstrap.yaml配置文件 - DynamicConfig: @RefreshScope动态配置刷新示例 ## F.1 ShardingSphere读写分离 - 添加shardingsphere-jdbc-core依赖 - sharding-config.yaml: 读写分离配置示例 - 支持主从切换、负载均衡策略 ## F.3 数据库索引优化 - db-index-optimization.sql: 全库索引优化脚本 - 用户/角色/菜单/部门表索引 - 用款/支出/收款表索引 - 复合索引优化常用查询场景
24 lines
562 B
YAML
24 lines
562 B
YAML
spring:
|
|
application:
|
|
name: fund-sys
|
|
cloud:
|
|
nacos:
|
|
# Nacos配置中心
|
|
config:
|
|
server-addr: localhost:8848
|
|
namespace: fund-platform
|
|
group: DEFAULT_GROUP
|
|
file-extension: yaml
|
|
# 共享配置
|
|
shared-configs:
|
|
- data-id: common.yaml
|
|
group: DEFAULT_GROUP
|
|
refresh: true
|
|
# 动态刷新
|
|
refresh-enabled: true
|
|
# Nacos服务发现
|
|
discovery:
|
|
server-addr: localhost:8848
|
|
namespace: fund-platform
|
|
group: DEFAULT_GROUP
|