docs(integration): 移除示例代码并更新配置说明- 删除设备集成测试中的默认配置启用示例

- 移除了消息集成组件中的示例引用
- 更新ZT-Message集成概述,去除对旧文档的引用
- 简化目录结构展示,移除example模块
- 清理冗余的配置键值说明- 统一删除各模块下的example目录引用
- 优化文档结构,提高可读性
This commit is contained in:
2025-10-11 11:24:42 +08:00
parent b14754ec0a
commit 765998bd97

View File

@@ -34,8 +34,7 @@ service/
├── client/ # Feign clients for HTTP calls
├── config/ # Service-specific configuration
├── dto/ # Data transfer objects
── service/ # Service layer with business logic
└── example/ # Usage examples
── service/ # Service layer with business logic
```
## Integration Fallback Mechanism
@@ -792,13 +791,6 @@ mvn test -Dtest=DefaultConfigIntegrationServiceTest
# Run all device integration tests (including default configs)
mvn test -Dtest="com.ycwl.basic.integration.device.*Test"
# Enable example runner in application-dev.yml
integration:
device:
example:
default-config:
enabled: true
```
### Common Configuration Keys
@@ -820,8 +812,7 @@ com.ycwl.basic.integration.{service-name}/
├── client/
├── config/
├── dto/
── service/
└── example/
── service/
```
### 2. Add Configuration Properties
@@ -1171,7 +1162,7 @@ fallbackService.clearAllFallbackCache("zt-render-worker");
## ZT-Message Integration (Kafka Producer)
### Overview
The zt-message microservice accepts messages via Kafka on topic `zt-message`. This integration provides a simple producer service to publish notification messages as per docs/kafka-java-producer.md.
The zt-message microservice accepts messages via Kafka on topic `zt-message`. This integration provides a simple producer service to publish notification messages.
- Topic: `zt-message`
- Key: Use `channelId` for partitioning stability
@@ -1180,7 +1171,6 @@ The zt-message microservice accepts messages via Kafka on topic `zt-message`. Th
### Components
- `com.ycwl.basic.integration.message.dto.ZtMessage`: DTO for message body
- `com.ycwl.basic.integration.message.service.ZtMessageProducerService`: Producer service using Spring Kafka
- Example: `com.ycwl.basic.integration.message.example.ZtMessageProducerExample`
### Configuration
```yaml