mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-10 19:39:01 +00:00
Merge branch '3.5.x'
Closes gh-47359
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ public class Profiles implements Iterable<String> {
|
||||
? Collections.emptySet()
|
||||
: StringUtils.commaDelimitedListToSet(StringUtils.trimAllWhitespace(environmentPropertyValue));
|
||||
validator.validate(environmentPropertyProfiles,
|
||||
() -> "Invalid profile property value found in Envronment under '%s'".formatted(type.getName()));
|
||||
() -> "Invalid profile property value found in Environment under '%s'".formatted(type.getName()));
|
||||
Set<String> environmentProfiles = new LinkedHashSet<>(Arrays.asList(type.get(environment)));
|
||||
BindResult<Set<String>> boundProfiles = binder.bind(type.getName(), STRING_SET, validator);
|
||||
if (hasProgrammaticallySetProfiles(type, environmentPropertyValue, environmentPropertyProfiles,
|
||||
|
||||
+1
-1
@@ -453,7 +453,7 @@ class ProfilesTests {
|
||||
environment.setProperty("spring.profiles.active", "fa!l");
|
||||
Binder binder = new Binder();
|
||||
assertThatIllegalStateException().isThrownBy(() -> new Profiles(environment, binder, null))
|
||||
.withMessage("Invalid profile property value found in Envronment under 'spring.profiles.active'");
|
||||
.withMessage("Invalid profile property value found in Environment under 'spring.profiles.active'");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user