apache / apache/dubbo

I'm curious about the method:getSubProperties

Open
#7,250 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### Environment

* Dubbo version: 2.7.5-SNAPSHOT
* Operating System version: win10
* Java version: 1.8.0_111

### Steps to reproduce this issue

1. 为什么解析@EnableDubboConfigBinding的每一行配置都要从springEnv引用到 new AbstractEnvironment()
见org/apache/dubbo/config/spring/util/PropertySourcesUtils.java:52
如下:
public static Map getSubProperties(Iterable> propertySources, String prefix) {

// Non-Extension AbstractEnvironment
AbstractEnvironment environment = new AbstractEnvironment() {
};

MutablePropertySources mutablePropertySources = environment.getPropertySources();

for (PropertySource source : propertySources) {
mutablePropertySources.addLast(source);
}

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.