# spring-boot-starter-autoconfig **Repository Path**: junleee/spring-boot-starter-autoconfig ## Basic Information - **Project Name**: spring-boot-starter-autoconfig - **Description**: 基于springboot 的独立集中配置管理插件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自动配置服务 * 添加依赖: ``` com.jason.support spring-boot-starter-autoconfig ``` * 增加配置的启动类 ``` 在application配置中增加 context.listener.classes=com.jason.autoconfig.ApplicationAutoconfigListener ``` * 使用方法 ``` 假设key = xxx, 获取值方式如下: 1. 在代码中使用@Value("${xxx}") 2. 在spring xml配置文件中使用 ${xxx} 3. 注入Environment, 然后使用environment.getProperties("xxx") ```