apache / apache/dubbo

版本2.7.17的DubboConfigurationProperties属性绑定,系统环境变量被application.yaml中的配置覆盖

Open
#10,539 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

版本2.7.17的DubboConfigurationProperties属性绑定时,
1. 先执行了org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor,绑定的是系统环境变量中的值;
2. 然后又执行了com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor,使用了application.yaml中的配置覆盖了前一次的属性绑定。

但是SpringBoot的配置是系统环境变量的优先级大于工程里的application.yaml,版本2.7.17里这样处理逻辑是不是有问题呢?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.