diff --git a/config/checkstyle/import-control.xml b/config/checkstyle/import-control.xml
index bfae8dfa623..86eaac0edc5 100644
--- a/config/checkstyle/import-control.xml
+++ b/config/checkstyle/import-control.xml
@@ -17,6 +17,9 @@
+
+
+
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/EnvironmentPostProcessor.java
similarity index 90%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java
rename to core/spring-boot/src/main/java/org/springframework/boot/EnvironmentPostProcessor.java
index 3e2f741e43c..4a8e32b0a8d 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/EnvironmentPostProcessor.java
@@ -14,9 +14,8 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot;
-import org.springframework.boot.SpringApplication;
import org.springframework.boot.bootstrap.BootstrapContext;
import org.springframework.boot.bootstrap.BootstrapRegistry;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
@@ -34,8 +33,8 @@ import org.springframework.core.env.Environment;
* interface or use an {@link org.springframework.core.annotation.Order @Order} annotation
* if they wish to be invoked in specific order.
*
- * Since Spring Boot 2.4, {@code EnvironmentPostProcessor} implementations may optionally
- * take the following constructor parameters:
+ * {@code EnvironmentPostProcessor} implementations may optionally take the following
+ * constructor parameters:
*
* - {@link DeferredLogFactory} - A factory that can be used to create loggers with
* output deferred until the application has been fully prepared (allowing the environment
@@ -47,7 +46,7 @@ import org.springframework.core.env.Environment;
*
* @author Andy Wilkinson
* @author Stephane Nicoll
- * @since 1.3.0
+ * @since 4.0.0
*/
@FunctionalInterface
public interface EnvironmentPostProcessor {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java
index c89a449cb82..7192f393ddf 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java
@@ -25,9 +25,9 @@ import java.util.Properties;
import org.apache.commons.logging.Log;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.json.JsonParser;
import org.springframework.boot.json.JsonParserFactory;
import org.springframework.boot.logging.DeferredLogFactory;
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/AnsiOutputApplicationListener.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/AnsiOutputApplicationListener.java
index 5039ccdf900..ce69a8ad99e 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/AnsiOutputApplicationListener.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/AnsiOutputApplicationListener.java
@@ -20,7 +20,7 @@ import org.springframework.boot.ansi.AnsiOutput;
import org.springframework.boot.ansi.AnsiOutput.Enabled;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.boot.context.properties.bind.Binder;
-import org.springframework.boot.env.EnvironmentPostProcessorApplicationListener;
+import org.springframework.boot.support.EnvironmentPostProcessorApplicationListener;
import org.springframework.context.ApplicationListener;
import org.springframework.core.Ordered;
import org.springframework.core.env.ConfigurableEnvironment;
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java
index 2684318dc58..e2424d90b49 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java
@@ -24,10 +24,10 @@ import java.util.function.Supplier;
import org.apache.commons.logging.Log;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
import org.springframework.boot.bootstrap.DefaultBootstrapContext;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.logging.DeferredLogFactory;
import org.springframework.core.Ordered;
import org.springframework.core.env.ConfigurableEnvironment;
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java
index cdc8c2b1dec..7c405fa9546 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java
@@ -16,8 +16,8 @@
package org.springframework.boot.context.config;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
-import org.springframework.boot.env.EnvironmentPostProcessor;
/**
* Context provided to {@link ConfigDataLoader} methods.
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java
index a7fa6b317c7..2bd87a3a0fd 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java
@@ -18,9 +18,9 @@ package org.springframework.boot.context.config;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
import org.springframework.boot.context.properties.bind.Binder;
-import org.springframework.boot.env.EnvironmentPostProcessor;
/**
* Context provided to {@link ConfigDataLocationResolver} methods.
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java b/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java
index 7724d745209..2ac32fd1165 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySource.java
@@ -28,6 +28,7 @@ import org.apache.commons.logging.LogFactory;
import org.jspecify.annotations.Nullable;
import org.springframework.core.env.ConfigurableEnvironment;
+import org.springframework.core.env.Environment;
import org.springframework.core.env.MutablePropertySources;
import org.springframework.core.env.PropertySource;
import org.springframework.core.env.StandardEnvironment;
@@ -143,11 +144,21 @@ public class RandomValuePropertySource extends PropertySource {
return HexFormat.of().withLowerCase().formatHex(bytes);
}
+ /**
+ * Add a {@link RandomValuePropertySource} to the given {@link Environment}.
+ * @param environment the environment to add the random property source to
+ */
public static void addToEnvironment(ConfigurableEnvironment environment) {
addToEnvironment(environment, logger);
}
- static void addToEnvironment(ConfigurableEnvironment environment, Log logger) {
+ /**
+ * Add a {@link RandomValuePropertySource} to the given {@link Environment}.
+ * @param environment the environment to add the random property source to
+ * @param logger logger used for debug and trace information
+ * @since 4.0.0
+ */
+ public static void addToEnvironment(ConfigurableEnvironment environment, Log logger) {
MutablePropertySources sources = environment.getPropertySources();
PropertySource> existing = sources.get(RANDOM_PROPERTY_SOURCE_NAME);
if (existing != null) {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java b/core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListener.java
similarity index 98%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListener.java
index 152d8ecb32a..9df2d85c76b 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListener.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.Arrays;
import java.util.List;
@@ -33,6 +33,7 @@ import org.springframework.beans.factory.aot.BeanFactoryInitializationAotContrib
import org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor;
import org.springframework.beans.factory.aot.BeanFactoryInitializationCode;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
@@ -57,7 +58,7 @@ import org.springframework.util.ObjectUtils;
*
* @author Phillip Webb
* @author Stephane Nicoll
- * @since 2.4.0
+ * @since 4.0.0
*/
public class EnvironmentPostProcessorApplicationListener implements SmartApplicationListener, Ordered {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorsFactory.java
similarity index 96%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorsFactory.java
index 14ee1d80a9e..9701dd52bfb 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorsFactory.java
@@ -14,12 +14,13 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.List;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
import org.springframework.boot.logging.DeferredLogFactory;
import org.springframework.core.io.support.SpringFactoriesLoader;
@@ -29,7 +30,7 @@ import org.springframework.core.io.support.SpringFactoriesLoader;
* create the {@link EnvironmentPostProcessor} instances.
*
* @author Phillip Webb
- * @since 2.4.0
+ * @since 4.0.0
*/
@FunctionalInterface
public interface EnvironmentPostProcessorsFactory {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessor.java
similarity index 91%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessor.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessor.java
index 6fa3ee1530f..8c013c72195 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessor.java
@@ -14,11 +14,13 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import org.apache.commons.logging.Log;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.env.RandomValuePropertySource;
import org.springframework.boot.logging.DeferredLogFactory;
import org.springframework.core.Ordered;
import org.springframework.core.env.ConfigurableEnvironment;
@@ -27,7 +29,7 @@ import org.springframework.core.env.ConfigurableEnvironment;
* {@link EnvironmentPostProcessor} to add the {@link RandomValuePropertySource}.
*
* @author Phillip Webb
- * @since 2.4.0
+ * @since 4.0.0
*/
public class RandomValuePropertySourceEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactory.java
similarity index 96%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactory.java
index b154d22b3a9..0f1055a14f4 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactory.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.ArrayList;
import java.util.Arrays;
@@ -23,6 +23,7 @@ import java.util.List;
import org.apache.commons.logging.Log;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.bootstrap.BootstrapContext;
import org.springframework.boot.bootstrap.BootstrapRegistry;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessor.java
similarity index 98%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessor.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessor.java
index eb2edf13f70..16747285d2b 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessor.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.Arrays;
import java.util.Collection;
@@ -26,6 +26,7 @@ import java.util.Set;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.json.JsonParser;
import org.springframework.boot.json.JsonParserFactory;
@@ -54,7 +55,7 @@ import org.springframework.web.context.support.StandardServletEnvironment;
* @author Phillip Webb
* @author Madhura Bhave
* @author Artsiom Yudovin
- * @since 1.3.0
+ * @since 4.0.0
*/
public class SpringApplicationJsonEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/support/SpringFactoriesEnvironmentPostProcessorsFactory.java
similarity index 95%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/SpringFactoriesEnvironmentPostProcessorsFactory.java
index 562b273d116..f0bc7310540 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/SpringFactoriesEnvironmentPostProcessorsFactory.java
@@ -14,10 +14,11 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.List;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.bootstrap.BootstrapContext;
import org.springframework.boot.bootstrap.BootstrapRegistry;
import org.springframework.boot.bootstrap.ConfigurableBootstrapContext;
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java
similarity index 97%
rename from core/spring-boot/src/main/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java
rename to core/spring-boot/src/main/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java
index 3d3507ff0aa..8cc72e95624 100644
--- a/core/spring-boot/src/main/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessor.java
@@ -14,12 +14,13 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.Map;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.origin.Origin;
import org.springframework.boot.origin.OriginLookup;
@@ -38,7 +39,7 @@ import org.springframework.util.StringUtils;
* {@link SystemEnvironmentOrigin} for every system environment property.
*
* @author Madhura Bhave
- * @since 2.0.0
+ * @since 4.0.0
*/
public class SystemEnvironmentPropertySourceEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered {
diff --git a/core/spring-boot/src/main/java/org/springframework/boot/support/package-info.java b/core/spring-boot/src/main/java/org/springframework/boot/support/package-info.java
new file mode 100644
index 00000000000..19a5e6044e9
--- /dev/null
+++ b/core/spring-boot/src/main/java/org/springframework/boot/support/package-info.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2012-present the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Classes supporting application concerns and the org.springframework.boot package.
+ */
+@NullMarked
+package org.springframework.boot.support;
+
+import org.jspecify.annotations.NullMarked;
diff --git a/core/spring-boot/src/main/resources/META-INF/spring.factories b/core/spring-boot/src/main/resources/META-INF/spring.factories
index d2e42f9273c..2e29517b78f 100644
--- a/core/spring-boot/src/main/resources/META-INF/spring.factories
+++ b/core/spring-boot/src/main/resources/META-INF/spring.factories
@@ -42,15 +42,15 @@ org.springframework.boot.builder.ParentContextCloserApplicationListener,\
org.springframework.boot.context.FileEncodingApplicationListener,\
org.springframework.boot.context.config.AnsiOutputApplicationListener,\
org.springframework.boot.context.logging.LoggingApplicationListener,\
-org.springframework.boot.env.EnvironmentPostProcessorApplicationListener
+org.springframework.boot.support.EnvironmentPostProcessorApplicationListener
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.cloud.CloudFoundryVcapEnvironmentPostProcessor,\
org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor,\
-org.springframework.boot.env.RandomValuePropertySourceEnvironmentPostProcessor,\
-org.springframework.boot.env.SpringApplicationJsonEnvironmentPostProcessor,\
-org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor
+org.springframework.boot.support.RandomValuePropertySourceEnvironmentPostProcessor,\
+org.springframework.boot.support.SpringApplicationJsonEnvironmentPostProcessor,\
+org.springframework.boot.support.SystemEnvironmentPropertySourceEnvironmentPostProcessor
# Failure Analyzers
org.springframework.boot.diagnostics.FailureAnalyzer=\
diff --git a/core/spring-boot/src/main/resources/META-INF/spring/aot.factories b/core/spring-boot/src/main/resources/META-INF/spring/aot.factories
index 4859f625c1e..b661eb51c41 100644
--- a/core/spring-boot/src/main/resources/META-INF/spring/aot.factories
+++ b/core/spring-boot/src/main/resources/META-INF/spring/aot.factories
@@ -13,8 +13,8 @@ org.springframework.boot.logging.structured.StructuredLoggingJsonProperties$Stru
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\
org.springframework.boot.context.properties.ConfigurationPropertiesBeanFactoryInitializationAotProcessor,\
-org.springframework.boot.env.EnvironmentPostProcessorApplicationListener$EnvironmentBeanFactoryInitializationAotProcessor,\
-org.springframework.boot.logging.structured.StructuredLoggingJsonPropertiesBeanFactoryInitializationAotProcessor
+org.springframework.boot.logging.structured.StructuredLoggingJsonPropertiesBeanFactoryInitializationAotProcessor,\
+org.springframework.boot.support.EnvironmentPostProcessorApplicationListener$EnvironmentBeanFactoryInitializationAotProcessor
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrationAotProcessor
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java
index f14de071432..b938a2eb394 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java
@@ -21,9 +21,11 @@ import java.util.function.Supplier;
import org.junit.jupiter.api.Test;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.bootstrap.DefaultBootstrapContext;
import org.springframework.boot.logging.DeferredLogFactory;
+import org.springframework.boot.support.EnvironmentPostProcessorsFactory;
import org.springframework.core.OverridingClassLoader;
import org.springframework.core.env.ConfigurableEnvironment;
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java b/core/spring-boot/src/test/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListenerTests.java
similarity index 98%
rename from core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java
rename to core/spring-boot/src/test/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListenerTests.java
index 9aeaccee603..f2a1619b4a3 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListenerTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.io.BufferedWriter;
import java.io.IOException;
@@ -38,6 +38,7 @@ import org.springframework.aot.AotDetector;
import org.springframework.aot.test.generate.TestGenerationContext;
import org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.bootstrap.BootstrapRegistry;
@@ -46,9 +47,9 @@ import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEven
import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.boot.context.event.ApplicationStartingEvent;
-import org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.EnvironmentBeanFactoryInitializationAotProcessor;
import org.springframework.boot.logging.DeferredLogFactory;
import org.springframework.boot.logging.DeferredLogs;
+import org.springframework.boot.support.EnvironmentPostProcessorApplicationListener.EnvironmentBeanFactoryInitializationAotProcessor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessorTests.java b/core/spring-boot/src/test/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessorTests.java
similarity index 97%
rename from core/spring-boot/src/test/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessorTests.java
rename to core/spring-boot/src/test/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessorTests.java
index 6a10cc7033f..00fd642c786 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/RandomValuePropertySourceEnvironmentPostProcessorTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessorTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.function.Supplier;
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java b/core/spring-boot/src/test/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactoryTests.java
similarity index 98%
rename from core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java
rename to core/spring-boot/src/test/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactoryTests.java
index 3a285e53276..e89f57ab6fd 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/support/ReflectionEnvironmentPostProcessorsFactoryTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.io.InputStream;
import java.util.Arrays;
@@ -24,6 +24,7 @@ import java.util.function.Supplier;
import org.apache.commons.logging.Log;
import org.junit.jupiter.api.Test;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.bootstrap.BootstrapRegistry;
import org.springframework.boot.bootstrap.DefaultBootstrapContext;
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessorTests.java b/core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java
similarity index 99%
rename from core/spring-boot/src/test/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessorTests.java
rename to core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java
index 1025341c195..0c21ebb4bfb 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/SpringApplicationJsonEnvironmentPostProcessorTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/support/SpringApplicationJsonEnvironmentPostProcessorTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.Collections;
import java.util.Map;
diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java b/core/spring-boot/src/test/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java
similarity index 96%
rename from core/spring-boot/src/test/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java
rename to core/spring-boot/src/test/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java
index 6779815197b..d690b2d8e5c 100644
--- a/core/spring-boot/src/test/java/org/springframework/boot/env/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java
+++ b/core/spring-boot/src/test/java/org/springframework/boot/support/SystemEnvironmentPropertySourceEnvironmentPostProcessorTests.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.springframework.boot.env;
+package org.springframework.boot.support;
import java.util.Collections;
import java.util.Map;
@@ -22,8 +22,8 @@ import java.util.Map;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource;
import org.springframework.boot.origin.SystemEnvironmentOrigin;
+import org.springframework.boot.support.SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.PropertySource;
import org.springframework.core.env.StandardEnvironment;
diff --git a/documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.java b/documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.java
index 9a899b30169..34ea62f181b 100644
--- a/documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.java
+++ b/documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.java
@@ -18,8 +18,8 @@ package org.springframework.boot.docs.howto.application.customizetheenvironmento
import java.io.IOException;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.env.YamlPropertySourceLoader;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.PropertySource;
diff --git a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt
index c87ca6c0751..07c120e858f 100644
--- a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt
+++ b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt
@@ -16,8 +16,8 @@
package org.springframework.boot.docs.howto.application.customizetheenvironmentorapplicationcontext
+import org.springframework.boot.EnvironmentPostProcessor
import org.springframework.boot.SpringApplication
-import org.springframework.boot.env.EnvironmentPostProcessor
import org.springframework.boot.env.YamlPropertySourceLoader
import org.springframework.core.env.ConfigurableEnvironment
import org.springframework.core.env.PropertySource
diff --git a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/RemoteSpringApplication.java b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/RemoteSpringApplication.java
index fba1bf7c9bc..9fb831ebd48 100644
--- a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/RemoteSpringApplication.java
+++ b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/RemoteSpringApplication.java
@@ -31,8 +31,8 @@ import org.springframework.boot.devtools.remote.client.RemoteClientConfiguration
import org.springframework.boot.devtools.restart.RestartInitializer;
import org.springframework.boot.devtools.restart.RestartScopeInitializer;
import org.springframework.boot.devtools.restart.Restarter;
-import org.springframework.boot.env.EnvironmentPostProcessorApplicationListener;
-import org.springframework.boot.env.EnvironmentPostProcessorsFactory;
+import org.springframework.boot.support.EnvironmentPostProcessorApplicationListener;
+import org.springframework.boot.support.EnvironmentPostProcessorsFactory;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ApplicationListener;
import org.springframework.core.io.ClassPathResource;
diff --git a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.java b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.java
index f20ff2ec5c9..00540e21ca1 100644
--- a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.java
+++ b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.java
@@ -31,9 +31,9 @@ import java.util.function.Supplier;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.devtools.system.DevToolsEnablementDeducer;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.env.PropertiesPropertySourceLoader;
import org.springframework.boot.env.PropertySourceLoader;
import org.springframework.boot.env.YamlPropertySourceLoader;
diff --git a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
index 42d37e4c623..d220d9a4e6b 100755
--- a/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
+++ b/module/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
@@ -26,11 +26,11 @@ import java.util.Properties;
import org.apache.commons.logging.Log;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.devtools.logger.DevToolsLogFactory;
import org.springframework.boot.devtools.restart.Restarter;
import org.springframework.boot.devtools.system.DevToolsEnablementDeducer;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.NativeDetector;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
diff --git a/module/spring-boot-devtools/src/main/resources/META-INF/spring.factories b/module/spring-boot-devtools/src/main/resources/META-INF/spring.factories
index baec9665ae1..6c33ef3073a 100644
--- a/module/spring-boot-devtools/src/main/resources/META-INF/spring.factories
+++ b/module/spring-boot-devtools/src/main/resources/META-INF/spring.factories
@@ -8,6 +8,6 @@ org.springframework.boot.devtools.logger.DevToolsLogFactory$Listener,\
org.springframework.boot.devtools.restart.RestartApplicationListener
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor,\
org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor
diff --git a/module/spring-boot-integration/src/main/java/org/springframework/boot/integration/autoconfigure/IntegrationPropertiesEnvironmentPostProcessor.java b/module/spring-boot-integration/src/main/java/org/springframework/boot/integration/autoconfigure/IntegrationPropertiesEnvironmentPostProcessor.java
index 7fd08d78990..4739c701ea5 100644
--- a/module/spring-boot-integration/src/main/java/org/springframework/boot/integration/autoconfigure/IntegrationPropertiesEnvironmentPostProcessor.java
+++ b/module/spring-boot-integration/src/main/java/org/springframework/boot/integration/autoconfigure/IntegrationPropertiesEnvironmentPostProcessor.java
@@ -23,8 +23,8 @@ import java.util.Map;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.env.OriginTrackedMapPropertySource;
import org.springframework.boot.env.PropertiesPropertySourceLoader;
import org.springframework.boot.origin.Origin;
diff --git a/module/spring-boot-integration/src/main/resources/META-INF/spring.factories b/module/spring-boot-integration/src/main/resources/META-INF/spring.factories
index 92b0d083799..e99b0e3cf94 100644
--- a/module/spring-boot-integration/src/main/resources/META-INF/spring.factories
+++ b/module/spring-boot-integration/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,3 @@
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.integration.autoconfigure.IntegrationPropertiesEnvironmentPostProcessor
diff --git a/module/spring-boot-micrometer-tracing/src/main/java/org/springframework/boot/micrometer/tracing/autoconfigure/LogCorrelationEnvironmentPostProcessor.java b/module/spring-boot-micrometer-tracing/src/main/java/org/springframework/boot/micrometer/tracing/autoconfigure/LogCorrelationEnvironmentPostProcessor.java
index 992982d1cb7..d88b898de82 100644
--- a/module/spring-boot-micrometer-tracing/src/main/java/org/springframework/boot/micrometer/tracing/autoconfigure/LogCorrelationEnvironmentPostProcessor.java
+++ b/module/spring-boot-micrometer-tracing/src/main/java/org/springframework/boot/micrometer/tracing/autoconfigure/LogCorrelationEnvironmentPostProcessor.java
@@ -18,8 +18,8 @@ package org.springframework.boot.micrometer.tracing.autoconfigure;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.logging.LoggingSystem;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.EnumerablePropertySource;
diff --git a/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring.factories b/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring.factories
index c969b6005d8..ddcfb419ec7 100644
--- a/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring.factories
+++ b/module/spring-boot-micrometer-tracing/src/main/resources/META-INF/spring.factories
@@ -9,7 +9,7 @@ org.springframework.context.ApplicationListener=\
org.springframework.boot.micrometer.tracing.autoconfigure.OpenTelemetryEventPublisherBeansApplicationListener
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.micrometer.tracing.autoconfigure.LogCorrelationEnvironmentPostProcessor
diff --git a/module/spring-boot-reactor/src/main/java/org/springframework/boot/reactor/ReactorEnvironmentPostProcessor.java b/module/spring-boot-reactor/src/main/java/org/springframework/boot/reactor/ReactorEnvironmentPostProcessor.java
index 210b0627543..81d8dbef13c 100644
--- a/module/spring-boot-reactor/src/main/java/org/springframework/boot/reactor/ReactorEnvironmentPostProcessor.java
+++ b/module/spring-boot-reactor/src/main/java/org/springframework/boot/reactor/ReactorEnvironmentPostProcessor.java
@@ -16,8 +16,8 @@
package org.springframework.boot.reactor;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.boot.thread.Threading;
import org.springframework.core.Ordered;
import org.springframework.core.env.ConfigurableEnvironment;
diff --git a/module/spring-boot-reactor/src/main/resources/META-INF/spring.factories b/module/spring-boot-reactor/src/main/resources/META-INF/spring.factories
index 638d0dfde6a..2e713586775 100644
--- a/module/spring-boot-reactor/src/main/resources/META-INF/spring.factories
+++ b/module/spring-boot-reactor/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,3 @@
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.reactor.ReactorEnvironmentPostProcessor
diff --git a/module/spring-boot-web-server-test/src/main/java/org/springframework/boot/web/server/test/SpringBootTestRandomPortEnvironmentPostProcessor.java b/module/spring-boot-web-server-test/src/main/java/org/springframework/boot/web/server/test/SpringBootTestRandomPortEnvironmentPostProcessor.java
index 6e09c18c840..ed1dd51ce2e 100644
--- a/module/spring-boot-web-server-test/src/main/java/org/springframework/boot/web/server/test/SpringBootTestRandomPortEnvironmentPostProcessor.java
+++ b/module/spring-boot-web-server-test/src/main/java/org/springframework/boot/web/server/test/SpringBootTestRandomPortEnvironmentPostProcessor.java
@@ -20,8 +20,8 @@ import java.util.Objects;
import org.jspecify.annotations.Nullable;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.convert.ConversionFailedException;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.MapPropertySource;
diff --git a/module/spring-boot-web-server-test/src/main/resources/META-INF/spring.factories b/module/spring-boot-web-server-test/src/main/resources/META-INF/spring.factories
index 108534a29eb..ee04e5c0d73 100644
--- a/module/spring-boot-web-server-test/src/main/resources/META-INF/spring.factories
+++ b/module/spring-boot-web-server-test/src/main/resources/META-INF/spring.factories
@@ -1,5 +1,5 @@
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
org.springframework.boot.web.server.test.SpringBootTestRandomPortEnvironmentPostProcessor
# Spring Test Context Customizer Factories
diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/ActiveProfilesEnvironmentPostProcessor.java b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/ActiveProfilesEnvironmentPostProcessor.java
index 3b32b39ba12..637d48fc333 100644
--- a/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/ActiveProfilesEnvironmentPostProcessor.java
+++ b/smoke-test/spring-boot-smoke-test-profile/src/main/java/smoketest/profile/ActiveProfilesEnvironmentPostProcessor.java
@@ -16,8 +16,8 @@
package smoketest.profile;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.SpringApplication;
-import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.core.env.ConfigurableEnvironment;
diff --git a/smoke-test/spring-boot-smoke-test-profile/src/main/resources/META-INF/spring.factories b/smoke-test/spring-boot-smoke-test-profile/src/main/resources/META-INF/spring.factories
index 6c7685d7a7e..8be540240a7 100644
--- a/smoke-test/spring-boot-smoke-test-profile/src/main/resources/META-INF/spring.factories
+++ b/smoke-test/spring-boot-smoke-test-profile/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,3 @@
# Environment Post Processors
-org.springframework.boot.env.EnvironmentPostProcessor=\
+org.springframework.boot.EnvironmentPostProcessor=\
smoketest.profile.ActiveProfilesEnvironmentPostProcessor
\ No newline at end of file
diff --git a/smoke-test/spring-boot-smoke-test-profile/src/test/java/smoketest/profile/ActiveProfilesTests.java b/smoke-test/spring-boot-smoke-test-profile/src/test/java/smoketest/profile/ActiveProfilesTests.java
index 3bc820615dc..a1c03ba9cdb 100644
--- a/smoke-test/spring-boot-smoke-test-profile/src/test/java/smoketest/profile/ActiveProfilesTests.java
+++ b/smoke-test/spring-boot-smoke-test-profile/src/test/java/smoketest/profile/ActiveProfilesTests.java
@@ -19,7 +19,7 @@ package smoketest.profile;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.env.EnvironmentPostProcessor;
+import org.springframework.boot.EnvironmentPostProcessor;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.core.env.Environment;