--- /dev/null
+package de.juplo.demos.multiplebeans;
+
+import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.env.EnvironmentPostProcessor;
+import org.springframework.core.env.ConfigurableEnvironment;
+import org.springframework.core.env.PropertySource;
+
+import java.util.regex.Pattern;
+
+public class MultipleBeansEnvironmentPostProcessor implements EnvironmentPostProcessor {
+ public final static Pattern PATTERN = Pattern.compile("juplo\\.sites\\[([0-9]+)\\]\\.(.+)");
+
+ @Override
+ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
+ for (PropertySource source : environment.getPropertySources()) {
+ System.out.println(source.getName());
+ }
+ }
+}
-org.springframework.context.ApplicationContextInitializer=de.juplo.demos.multiplebeans.MultipleBeansApplicationContextInitializer
+org.springframework.boot.env.EnvironmentPostProcessor=de.juplo.demos.multiplebeans.MultipleBeansEnvironmentPostProcessor
\ No newline at end of file