基础设施配置
Kafka
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
wow.kafka.enabled | Boolean | true | 启用 Kafka 集成 |
wow.kafka.bootstrap-servers | List<String> | (必填) | Kafka bootstrap server 地址 |
wow.kafka.topic-prefix | String | wow. | Topic 名称前缀 |
wow.kafka.properties | Map<String, String> | {} | 额外的 Kafka 客户端属性 |
wow.kafka.producer | Map<String, String> | {} | Kafka 生产者专属属性 |
wow.kafka.consumer | Map<String, String> | {} | Kafka 消费者专属属性 |
yaml
wow:
kafka:
enabled: true
bootstrap-servers:
- localhost:9092
topic-prefix: "wow."
producer:
acks: all
retries: 3
consumer:
auto-offset-reset: earliest
group-id: wow-consumerMongoDB
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
wow.mongo.enabled | Boolean | true | 启用 MongoDB 集成 |
wow.mongo.auto-init-schema | Boolean | true | 启动时自动初始化数据库 Schema |
wow.mongo.event-stream-database | String? | null | 事件流使用的独立数据库(默认使用主数据库) |
wow.mongo.snapshot-database | String? | null | 快照使用的独立数据库(默认使用主数据库) |
wow.mongo.prepare-database | String? | null | PrepareKey 存储使用的独立数据库(默认使用主数据库) |
yaml
wow:
mongo:
enabled: true
auto-init-schema: true
event-stream-database: wow_events
snapshot-database: wow_snapshotsRedis
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
wow.redis.enabled | Boolean | true | 启用 Redis 集成 |
Redis 连接通过 Spring Boot 标准的 spring.data.redis.* 属性进行配置。
yaml
spring:
data:
redis:
host: localhost
port: 6379
wow:
redis:
enabled: trueElasticsearch
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
wow.elasticsearch.enabled | Boolean | true | 启用 Elasticsearch 集成 |
wow.elasticsearch.auto-init-template | Boolean | true | 启动时自动初始化索引模板 |
Elasticsearch 连接通过 Spring Boot 标准的 spring.elasticsearch.* 属性进行配置。
yaml
spring:
elasticsearch:
uris: http://localhost:9200
wow:
elasticsearch:
enabled: true
auto-init-template: trueWebFlux
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
wow.webflux.enabled | Boolean | true | 启用 WebFlux 命令端点自动注册 |
wow.webflux.global-error.enabled | Boolean | true | 启用全局错误处理 |
yaml
wow:
webflux:
enabled: true
global-error:
enabled: true