Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【feature】优化properties和config.yaml配置文件驼峰和中划线支持以及相应环境变量读取 #658

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

lilai23
Copy link
Collaborator

@lilai23 lilai23 commented Aug 18, 2022

【issue号/问题单号/需求单号】#649

【修改内容】优化properties和yaml配置文件数据格式支持以及环境变量读取

(1)通过在属性appName上添加@ConfigFieldKey("app-name")注解(举例),可以在properties或yaml用中划线替换驼峰形式的键值(兼容驼峰形式)。
(2)config.yaml中xxx.xxx.appName将会直接以xxx.xxx.appName和解析为xxx.xxx.app.Name再通过KeyFormatter读取环境变量
(3)config.yaml中xxx.xxx.app-name将会被解析为xxx.xxx.app.Name再通过KeyFormatter读取环境变量

【用例描述】暂无用例

【自测情况】UT测试通过

【影响范围】config.properties、config.yaml配置

xuezechao1
xuezechao1 previously approved these changes Aug 19, 2022
justforstudy-A
justforstudy-A previously approved these changes Aug 19, 2022
provenceee
provenceee previously approved these changes Aug 19, 2022
                                                              (1)通过在属性appName上添加@ConfigFieldKey("app-name")注解,可以在properties或yaml用中划线替换驼峰形式的键值(兼容驼峰形式)。
                                                              (2)xxx.xxx.appName将会直接以xxx.xxx.appName和解析为xxx.xxx.app.Name再通过KeyFormatter读取环境变量
                                                              (3)xxx.xxx.app-name将会被解析为xxx.xxx.app.Name再通过KeyFormatter读取环境变量
@lilai23 lilai23 dismissed stale reviews from provenceee and justforstudy-A via b1ed7fc August 22, 2022 08:40
@lilai23 lilai23 changed the title 【feature】优化插件config.yaml配置文件数据格式支持以及环境变量读取 【feature】优化properties和config.yaml配置文件驼峰和中划线支持以及相应环境变量读取 Aug 22, 2022
@lilai23 lilai23 added the kind/feature Issue for new feature label Aug 22, 2022
@robotLJW robotLJW merged commit eda0104 into sermant-io:develop Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issue for new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants