Merge branch '3.5.x'

Closes gh-47359
This commit is contained in:
Stéphane Nicoll 2025-09-30 07:50:09 +02:00
commit eb307b91ec
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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