# est-spi-config **Repository Path**: est-spi/config ## Basic Information - **Project Name**: est-spi-config - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-15 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EST SPI Config [English Version](README.en.md) ## EST SPI 配置管理模块 est-spi-config 是 EST SPI 框架的配置管理抽象模块,提供了统一的配置访问接口和多种配置源实现。 ### 核心接口 #### ConfigSource - 配置源接口 定义配置源的基本行为。 #### Config - 配置接口 提供统一的配置访问方法,支持多种数据类型。 #### ConfigProvider - 配置提供器接口 用于获取 Config 实例。 ### 内置配置源 #### SystemPropertiesConfigSource 从系统属性读取配置,优先级最高(ordinal: 400)。 #### EnvironmentVariablesConfigSource 从环境变量读取配置,支持自动转换配置键格式(ordinal: 300)。 ### 快速开始 ```java import ltd.idcu.est.spi.config.Config; import ltd.idcu.est.spi.config.ConfigResolver; public class Example { public static void main(String[] args) { Config config = ConfigResolver.getConfig(); String stringValue = config.getValue("app.name", "default-app"); int intValue = config.getInt("app.port", 8080); boolean boolValue = config.getBoolean("app.debug", false); System.out.println("App Name: " + stringValue); System.out.println("Port: " + intValue); System.out.println("Debug Mode: " + boolValue); } } ``` ### Maven 依赖 ```xml ltd.idcu.est.spi est-spi-config 1.0.0 ``` ### 许可证 MIT License