API 参考

配置概述

配置来源、优先级与主要配置前缀。

配置来源与优先级

配置优先级从高到低为:

  1. 命令行参数
  2. 环境变量和 JVM 系统属性
  3. application.ymlapplication.properties
  4. Starter 的 META-INF/nebula-defaults.properties
  5. 配置属性类中的默认值

Starter 默认值不会覆盖应用显式配置。

主要配置前缀

能力 配置前缀 属性定义
Security nebula.security SecurityProperties
Web nebula.web WebProperties
Persistence nebula.data.persistence DataSourceManagerMybatisPlusProperties
Cache nebula.data.cache CacheProperties
Read/Write nebula.data.read-write-separation ReadWriteDataSourceManager
Sharding nebula.data.sharding ShardingConfig
Neo4j nebula.data.neo4j Neo4jProperties
RabbitMQ nebula.messaging.rabbitmq RabbitMQProperties
RocketMQ nebula.messaging.rocketmq RocketMQProperties
Redis Messaging nebula.messaging.redis RedisMessagingProperties
HTTP RPC nebula.rpc.http HttpRpcProperties
gRPC nebula.rpc.grpc GrpcRpcProperties
Async RPC nebula.rpc.async AsyncRpcProperties
RPC Discovery nebula.rpc.discovery RpcDiscoveryProperties
Nacos nebula.discovery.nacos NacosProperties
Redis Lock nebula.lock RedisLockProperties
Gateway nebula.gateway GatewayProperties
MinIO nebula.storage.minio MinIOProperties
Aliyun OSS nebula.storage.aliyun.oss AliyunOSSProperties
Elasticsearch nebula.search.elasticsearch ElasticsearchProperties
AI nebula.ai AIProperties
MCP nebula.ai.mcp McpProperties
Vector Store nebula.ai.vector-store VectorStoreProperties
RAG nebula.ai.rag RagProperties
Crawler nebula.crawler CrawlerProperties 及各实现属性类
WebSocket nebula.websocket WebSocketPropertiesNettyWebSocketProperties
Task nebula.task TaskProperties
Payment nebula.payment PaymentProperties
Notification nebula.notification NotificationProperties

源码位置可用以下命令直接查找:

rg -n '@ConfigurationProperties' application autoconfigure core infrastructure integration