You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refine `SystemEnvironmentPropertyMapper` to support environment
variables that would have worked in Spring Boot 1.5. Specifically,
camelCase property bindings now support an additional underscore. The
recommended way to map `fooBar` is still `PREFIX_FOOBAR`, however,
`PREFIX_FOO_BAR` will now also work.
Fixesgh-10873
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SystemEnvironmentPropertyMapper.java
+42-25Lines changed: 42 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@
18
18
19
19
importjava.util.ArrayList;
20
20
importjava.util.Collections;
21
+
importjava.util.LinkedHashSet;
21
22
importjava.util.List;
23
+
importjava.util.Set;
22
24
importjava.util.function.Function;
23
25
importjava.util.stream.IntStream;
24
26
@@ -49,6 +51,37 @@ final class SystemEnvironmentPropertyMapper implements PropertyMapper {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/SystemEnvironmentPropertyMapperTests.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,8 @@ public void mapFromConfigurationShouldReturnBestGuess() throws Exception {
0 commit comments